aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/CreatureAI.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/game/AI/CreatureAI.h')
-rw-r--r--src/server/game/AI/CreatureAI.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/server/game/AI/CreatureAI.h b/src/server/game/AI/CreatureAI.h
index 05e615631b7..54b5d8c15af 100644
--- a/src/server/game/AI/CreatureAI.h
+++ b/src/server/game/AI/CreatureAI.h
@@ -33,6 +33,7 @@ class PlayerAI;
class WorldObject;
struct Position;
enum class QuestGiverStatus : uint32;
+enum SpellFinishReason : uint8;
typedef std::vector<AreaBoundary const*> CreatureBoundary;
@@ -139,11 +140,8 @@ class TC_GAME_API CreatureAI : public UnitAI
// Called when spell hits a target
virtual void SpellHitTarget(WorldObject* /*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*/) { }
+ // Called when a spell either finishes, interrupts or cancels a spell cast
+ virtual void OnSpellCastFinished(SpellInfo const* /*spell*/, SpellFinishReason /*reason*/) { }
// Should return true if the NPC is currently being escorted
virtual bool IsEscorted() const { return false; }