mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 01:59:09 +00:00
fix(Scripts/Commands): quest complate kill reward (#9926)
This commit is contained in:
committed by
GitHub
parent
666aca2a63
commit
75fc2d1b2d
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user