diff options
| author | Treeston <treeston.mmoc@gmail.com> | 2018-08-14 16:09:51 +0200 |
|---|---|---|
| committer | Treeston <treeston.mmoc@gmail.com> | 2018-08-14 16:09:51 +0200 |
| commit | 077bf43ab5e4a646d2898eea28e4b8752a93fc89 (patch) | |
| tree | 2b27d68caeecf09d4adda1fb717cafa639494e9f /src/server/scripts/Commands | |
| parent | 9f3e6bfe9b76c4b0829cc4bc702d9a31144ce83f (diff) | |
Scripts/Commands: Fix .quest complete to properly work with PvP kill quests. Closes #16321.
Diffstat (limited to 'src/server/scripts/Commands')
| -rw-r--r-- | src/server/scripts/Commands/cs_quest.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/scripts/Commands/cs_quest.cpp b/src/server/scripts/Commands/cs_quest.cpp index 6d333866606..1c6b5d55f6a 100644 --- a/src/server/scripts/Commands/cs_quest.cpp +++ b/src/server/scripts/Commands/cs_quest.cpp @@ -230,6 +230,11 @@ public: player->KillCreditGO(creature); } + // player kills + if (quest->HasSpecialFlag(QUEST_SPECIAL_FLAGS_PLAYER_KILL)) + if (uint32 reqPlayers = quest->GetPlayersSlain()) + player->KilledPlayerCreditForQuest(reqPlayers, quest); + // If the quest requires reputation to complete if (uint32 repFaction = quest->GetRepObjectiveFaction()) { |
