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
+1 -1
View File
@@ -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()