Scripts/Commands: Fix .quest complete to properly work with PvP kill quests. Closes #16321.

This commit is contained in:
Treeston authored and Aokromes committed 2018-08-15 13:37:41 +02:00
1 parent b355c67994
commit 8bb732b951
3 files changed
+35 -20

No files matched your search

+5
View File
@@ -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())
{