diff options
author | offl <11556157+offl@users.noreply.github.com> | 2025-09-24 14:06:06 +0300 |
---|---|---|
committer | ModoX <moardox@gmail.com> | 2025-10-04 13:21:02 +0200 |
commit | d1e07ac6553c7ae1e3296fc044247f0d0f95d267 (patch) | |
tree | f1e35bd4ae633417dd229b6702e341bfff32d5de /src/server/game/AI/CreatureAI.h | |
parent | 3f80825c00db071b3525f2c9657a989f4cd82e5c (diff) |
Core/AI: Implement OnAuraApplied and OnAuraRemoved hooks (#31288)
Closes #26894
(cherry picked from commit 3bb4f5677359e3af9fe4b80e42157816786dca49)
Diffstat (limited to 'src/server/game/AI/CreatureAI.h')
-rw-r--r-- | src/server/game/AI/CreatureAI.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/server/game/AI/CreatureAI.h b/src/server/game/AI/CreatureAI.h index 953c349bad7..66fd60bfcdb 100644 --- a/src/server/game/AI/CreatureAI.h +++ b/src/server/game/AI/CreatureAI.h @@ -26,6 +26,7 @@ class AreaBoundary; class AreaTrigger; +class AuraApplication; class Creature; class DynamicObject; class GameObject; @@ -144,6 +145,12 @@ class TC_GAME_API CreatureAI : public UnitAI // Called when a channeled spell finishes virtual void OnChannelFinished(SpellInfo const* /*spell*/) { } + // Called when aura is applied + virtual void OnAuraApplied(AuraApplication const* /*aurApp*/) { } + + // Called when aura is removed + virtual void OnAuraRemoved(AuraApplication const* /*aurApp*/) { } + // Should return true if the NPC is currently being escorted virtual bool IsEscorted() const { return false; } |