feat(Core/Spells): Implement OnSpellCastFinished hook (#22941)

Co-authored-by: Ovahlord <dreadkiller@gmx.de>
This commit is contained in:
Andrew
2025-09-19 04:52:22 -03:00
committed by GitHub
parent d58d8692b1
commit b09609e47d
4 changed files with 24 additions and 0 deletions

View File

@@ -4138,6 +4138,9 @@ void Unit::InterruptSpell(CurrentSpellTypes spellType, bool withDelayed, bool wi
if (ai->CanChaseOnInterrupt())
ai->SetCombatMove(true);
}
if (IsCreature() && IsAIEnabled)
ToCreature()->AI()->OnSpellCastFinished(spell->GetSpellInfo(), SPELL_FINISHED_CANCELED);
}
}