aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/game/AI/CreatureAI.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/server/game/AI/CreatureAI.h b/src/server/game/AI/CreatureAI.h
index 1feaf3354d8..1b6c9cce090 100644
--- a/src/server/game/AI/CreatureAI.h
+++ b/src/server/game/AI/CreatureAI.h
@@ -141,6 +141,12 @@ class TC_GAME_API CreatureAI : public UnitAI
virtual void SpellHitTarget(Unit* /*target*/, SpellInfo const* /*spellInfo*/) { }
virtual void SpellHitTargetGameObject(GameObject* /*target*/, SpellInfo const* /*spellInfo*/) { }
+ // Called when a spell cast gets interrupted
+ virtual void OnSpellCastInterrupt(SpellInfo const* /*spell*/) { }
+
+ // Called when a spell cast has been successfully finished
+ virtual void OnSuccessfulSpellCast(SpellInfo const* /*spell*/) { }
+
// Should return true if the NPC is currently being escorted
virtual bool IsEscorted() const { return false; }
@@ -152,12 +158,6 @@ class TC_GAME_API CreatureAI : public UnitAI
void OnCharmed(bool isNew) override;
- // Called when a spell cast gets interrupted
- virtual void OnSpellCastInterrupt(SpellInfo const* /*spell*/) { }
-
- // Called when a spell cast has been successfully finished
- virtual void OnSuccessfulSpellCast(SpellInfo const* /*spell*/) { }
-
// Called at reaching home after evade
virtual void JustReachedHome() { }