[Core /Script] Added On player complete quest hook (#1427)

* Added OnPlayerCompleteQuest Hook
This commit is contained in:
Lee
2019-02-07 22:03:30 +00:00
committed by GitHub
parent c141e06362
commit 6750fd5a73
3 changed files with 12 additions and 0 deletions

View File

@@ -1374,6 +1374,12 @@ bool ScriptMgr::OnCriteriaCheck(uint32 scriptId, Player* source, Unit* target, u
}
// Player
void ScriptMgr::OnPlayerCompleteQuest(Player* player, Quest const* quest)
{
FOREACH_SCRIPT(PlayerScript)->OnPlayerCompleteQuest(player, quest);
}
void ScriptMgr::OnPlayerReleasedGhost(Player* player)
{
FOREACH_SCRIPT(PlayerScript)->OnPlayerReleasedGhost(player);