From 077bf43ab5e4a646d2898eea28e4b8752a93fc89 Mon Sep 17 00:00:00 2001 From: Treeston Date: Tue, 14 Aug 2018 16:09:51 +0200 Subject: Scripts/Commands: Fix .quest complete to properly work with PvP kill quests. Closes #16321. --- src/server/scripts/Commands/cs_quest.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/server/scripts/Commands') 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()) { -- cgit v1.2.3