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

Closes #20222
This commit is contained in:
Killyana
2018-04-14 16:45:05 +02:00
parent e27a745c58
commit 1e8227eda7

View File

@@ -567,7 +567,8 @@ 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) ||
mana < spellInfo->CalcPowerCost(me, spellInfo->GetSchoolMask()))
mana < spellInfo->CalcPowerCost(me, spellInfo->GetSchoolMask())||
!me->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_SILENCED))
allowMove = true;
ENSURE_AI(SmartAI, me->AI())->SetCombatMove(allowMove);