fix(Scripts/Commands): quest complate kill reward (#9926)

This commit is contained in:
IntelligentQuantum
2022-01-24 11:52:40 +03:30
committed by GitHub
parent 666aca2a63
commit 75fc2d1b2d
3 changed files with 50 additions and 20 deletions

View File

@@ -298,6 +298,15 @@ public:
}
}
// 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())
{