feat(Core: new hook OnPlayerQueueRandomDungeon() and revert (now unnecessary) PR (#8196)

This commit is contained in:
Francesco Borzì
2021-10-02 09:18:33 +02:00
committed by GitHub
parent ca47fc96f2
commit 775c6744d2
6 changed files with 11 additions and 13 deletions

View File

@@ -1629,6 +1629,11 @@ void ScriptMgr::OnPlayerAddToBattleground(Player* player, Battleground* bg)
FOREACH_SCRIPT(PlayerScript)->OnAddToBattleground(player, bg);
}
void ScriptMgr::OnPlayerQueueRandomDungeon(Player* player, uint32 & rDungeonId)
{
FOREACH_SCRIPT(PlayerScript)->OnQueueRandomDungeon(player, rDungeonId);
}
void ScriptMgr::OnPlayerRemoveFromBattleground(Player* player, Battleground* bg)
{
FOREACH_SCRIPT(PlayerScript)->OnRemoveFromBattleground(player, bg);