Scripts/Commands: Fix .quest complete to properly work with PvP kill quests. Closes #16321.
This commit is contained in:
1 parent
b355c67994
commit
8bb732b951
3 files changed
+35
-20
No files matched your search
@@ -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())
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user