mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-06 17:08:23 +01:00
Core/SAI: Allow movements for creature using castflag 64 when silenced
Closes #20222
(cherry picked from commit 1e8227eda7)
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