mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Core/Battleground: Moved DoAction hook to ZoneScript
(cherry picked from commit 22614d6bcc)
This commit is contained in:
@@ -416,9 +416,6 @@ class TC_GAME_API Battleground : public ZoneScript
|
||||
void EventPlayerLoggedOut(Player* player);
|
||||
void ProcessEvent(WorldObject* /*obj*/, uint32 /*eventId*/, WorldObject* /*invoker*/) override { }
|
||||
|
||||
// this function can be used by spell to interact with the BG map
|
||||
virtual void DoAction(uint32 /*action*/, ObjectGuid /*var*/) { }
|
||||
|
||||
virtual void HandlePlayerResurrect(Player* /*player*/) { }
|
||||
|
||||
// Death related
|
||||
|
||||
@@ -93,6 +93,7 @@ class TC_GAME_API ZoneScript
|
||||
|
||||
virtual void TriggerGameEvent(uint32 gameEventId, WorldObject* source = nullptr, WorldObject* target = nullptr);
|
||||
virtual void ProcessEvent(WorldObject* /*obj*/, uint32 /*eventId*/, WorldObject* /*invoker*/) { }
|
||||
virtual void DoAction([[maybe_unused]] uint32 actionId, [[maybe_unused]] WorldObject* source = nullptr, [[maybe_unused]] WorldObject* target = nullptr) { }
|
||||
|
||||
virtual void OnFlagStateChange([[maybe_unused]] GameObject* flagInBase, [[maybe_unused]] FlagState oldValue, [[maybe_unused]] FlagState newValue, [[maybe_unused]] Player* player) { }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user