Core/SAI: Fix creatures casting spells while moving with flag SMARTCAST_COMBAT_MOVE

Fixes #24019

(cherry picked from commit 2910d0fb24)
This commit is contained in:
jackpoz
2020-08-06 17:59:36 +02:00
committed by Shauren
parent ffd85f9139
commit b3545479bf
3 changed files with 12 additions and 8 deletions
@@ -599,7 +599,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
me->HasUnitFlag(UNIT_FLAG_SILENCED))
allowMove = true;
ENSURE_AI(SmartAI, me->AI())->SetCombatMove(allowMove);
ENSURE_AI(SmartAI, me->AI())->SetCombatMove(allowMove, true);
}
me->CastSpell(target->ToUnit(), e.action.cast.spell, triggerFlag);