Core/Spells: unify OnSpellCastInterrupt and OnSuccessfulSpellCast hooks into OnSpellCastFinished
Port From (https://github.com/TrinityCore/TrinityCore/commit/d1594c7295f1ca3f21a63a13895abf371d8bd3e0)
This commit is contained in:
@@ -2422,7 +2422,7 @@ namespace Game.Entities
|
||||
}
|
||||
|
||||
if (IsCreature() && IsAIEnabled())
|
||||
ToCreature().GetAI().OnSpellCastInterrupt(spell.GetSpellInfo());
|
||||
ToCreature().GetAI().OnSpellCastFinished(spell.GetSpellInfo(), SpellFinishReason.Canceled);
|
||||
}
|
||||
}
|
||||
public void UpdateInterruptMask()
|
||||
|
||||
Reference in New Issue
Block a user