Core/Spells: unify OnSpellCastInterrupt and OnSuccessfulSpellCast hooks into OnSpellCastFinished

Port From (https://github.com/TrinityCore/TrinityCore/commit/d1594c7295f1ca3f21a63a13895abf371d8bd3e0)
This commit is contained in:
hondacrx
2022-05-24 12:54:25 -04:00
parent bf0c12ab0c
commit 3c3d16ab09
4 changed files with 17 additions and 7 deletions
+2 -5
View File
@@ -492,11 +492,8 @@ namespace Game.AI
// Called when spell hits a target
public virtual void SpellHitTarget(WorldObject target, SpellInfo spellInfo) { }
// Called when a spell cast gets interrupted
public virtual void OnSpellCastInterrupt(SpellInfo spell) { }
// Called when a spell cast has been successfully finished
public virtual void OnSuccessfulSpellCast(SpellInfo spell) { }
// Called when a spell either finishes, interrupts or cancels a spell cast
public virtual void OnSpellCastFinished(SpellInfo spell, SpellFinishReason reason) { }
// Should return true if the NPC is currently being escorted
public virtual bool IsEscorted() { return false; }