mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 03:15:41 +00:00
Core/Scripts: add new hook OnPlayerAddToBattleground
This commit is contained in:
@@ -1263,9 +1263,14 @@ void ScriptMgr::OnPlayerUpdateFaction(Player* player)
|
||||
FOREACH_SCRIPT(PlayerScript)->OnUpdateFaction(player);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnPlayerAddToBattleground(Player* player, Battleground *bg)
|
||||
{
|
||||
FOREACH_SCRIPT(PlayerScript)->OnAddToBattleground(player, bg);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnPlayerRemoveFromBattleground(Player* player, Battleground* bg)
|
||||
{
|
||||
FOREACH_SCRIPT(PlayerScript)->OnPlayerRemoveFromBattleground(player, bg);
|
||||
FOREACH_SCRIPT(PlayerScript)->OnRemoveFromBattleground(player, bg);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnAchievementComplete(Player* player, AchievementEntry const* achievement)
|
||||
|
||||
Reference in New Issue
Block a user