Core/SAI: Allow movements for creature using castflag 64 when silenced
Closes #20222 (cherry picked from commit 1e8227eda7f9c6a989fe6c928c857d76491e008c)
This commit is contained in:
@@ -593,7 +593,9 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
||||
|
||||
if (me->GetDistance(target) > spellInfo->GetMaxRange(true) ||
|
||||
me->GetDistance(target) < spellInfo->GetMinRange(true) ||
|
||||
!me->IsWithinLOSInMap(target) || !hasPower)
|
||||
!me->IsWithinLOSInMap(target) ||
|
||||
!hasPower ||
|
||||
!me->HasUnitFlag(UNIT_FLAG_SILENCED))
|
||||
allowMove = true;
|
||||
|
||||
ENSURE_AI(SmartAI, me->AI())->SetCombatMove(allowMove);
|
||||
|
||||
Reference in New Issue
Block a user