mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-18 22:19:54 -04:00
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:
@@ -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