Core/SAI: Fix creatures casting spells while moving with flag SMARTCAST_COMBAT_MOVE
Fixes #24019 (cherry picked from commit 2910d0fb2436d9865d792ef92cb415f831a0af93)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user