Fixes some crashes.

This commit is contained in:
hondacrx
2022-10-11 17:09:56 -04:00
parent 1ba4405421
commit 9ea20a8925
2 changed files with 7 additions and 6 deletions
+2
View File
@@ -334,6 +334,8 @@ namespace Game.AI
public SpellCastResult DoCast(Unit victim, uint spellId, CastSpellExtraArgs args = null)
{
args = args ?? new CastSpellExtraArgs();
if (me.HasUnitState(UnitState.Casting) && !args.TriggerFlags.HasAnyFlag(TriggerCastFlags.IgnoreCastInProgress))
return SpellCastResult.SpellInProgress;