mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 01:59:09 +00:00
feat(Core/Hooks): Added new BG hooks (#2008)
This commit is contained in:
@@ -1110,6 +1110,12 @@ public:
|
||||
|
||||
// Add Player in Battlegroud
|
||||
virtual void OnBattlegroundAddPlayer(Battleground* /*bg*/, Player* /*player*/) { }
|
||||
|
||||
// Before added player in Battlegroud
|
||||
virtual void OnBattlegroundBeforeAddPlayer(Battleground* /*bg*/, Player* /*player*/) { }
|
||||
|
||||
// Remove player at leave BG
|
||||
virtual void OnBattlegroundRemovePlayerAtLeave(Battleground* /*bg*/, Player* /*player*/) { }
|
||||
};
|
||||
|
||||
class SpellSC : public ScriptObject
|
||||
@@ -1480,6 +1486,8 @@ class ScriptMgr
|
||||
void OnBattlegroundEndReward(Battleground* bg, Player* player, TeamId winnerTeamId);
|
||||
void OnBattlegroundUpdate(Battleground* bg, uint32 diff);
|
||||
void OnBattlegroundAddPlayer(Battleground* bg, Player* player);
|
||||
void OnBattlegroundBeforeAddPlayer(Battleground* bg, Player* player);
|
||||
void OnBattlegroundRemovePlayerAtLeave(Battleground* bg, Player* player);
|
||||
|
||||
public: /* SpellSC */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user