Core/SAI: Allow movements for creature using castflag 64 when silenced

Closes #20222

(cherry picked from commit 1e8227eda7)
This commit is contained in:
Killyana
2018-04-14 16:45:05 +02:00
committed by Shauren
parent e7f93ca96d
commit c0cb8fc1fe

View File

@@ -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);