Core/Battleground: Moved DoAction hook to ZoneScript

(cherry picked from commit 22614d6bcc)
This commit is contained in:
Jeremy
2024-01-01 03:10:32 +01:00
committed by funjoker
parent 9ba9d6e74c
commit b091acd610
2 changed files with 1 additions and 3 deletions

View File

@@ -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

View File

@@ -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) { }