fix(Scripts/Commands): quest complate kill reward (#9926)
This commit is contained in:
parent
666aca2a63
commit
75fc2d1b2d
3 changed files with 50 additions and 20 deletions
|
|
@ -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())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue