Core/Scripts: implement a PlayerScript hook called when a quest's objective receives progress (#23286)

This commit is contained in:
Wyrserth
2019-05-17 20:38:15 +02:00
committed by Shauren
parent 908fbf48d2
commit 404c4f8091
3 changed files with 11 additions and 0 deletions

View File

@@ -1961,6 +1961,11 @@ void ScriptMgr::OnPlayerRepop(Player* player)
FOREACH_SCRIPT(PlayerScript)->OnPlayerRepop(player);
}
void ScriptMgr::OnQuestObjectiveProgress(Player* player, Quest const* quest, uint32 objectiveIndex, uint16 progress)
{
FOREACH_SCRIPT(PlayerScript)->OnQuestObjectiveProgress(player, quest, objectiveIndex, progress);
}
// Account
void ScriptMgr::OnAccountLogin(uint32 accountId)
{