Core/AI: OnSpellCast, OnSpellFailed, OnSpellStart hooks

Port From (https://github.com/TrinityCore/TrinityCore/commit/050f55b62fded4cc73b76e42d56d98ea950cc26a)
This commit is contained in:
hondacrx
2022-05-30 15:44:21 -04:00
parent 5575703997
commit 306b0cb227
8 changed files with 80 additions and 14 deletions
+1 -1
View File
@@ -2422,7 +2422,7 @@ namespace Game.Entities
}
if (IsCreature() && IsAIEnabled())
ToCreature().GetAI().OnSpellCastFinished(spell.GetSpellInfo(), SpellFinishReason.Canceled);
ToCreature().GetAI().OnSpellFailed(spell.GetSpellInfo());
}
}
public void UpdateInterruptMask()