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

Port From (https://github.com/TrinityCore/TrinityCore/commit/c0cb8fc1fe8e2079b9ae0f345e5d4ad2b1bfa730)
This commit is contained in:
hondacrx
2021-09-26 11:40:39 -04:00
parent 3b4a440aa7
commit ba423331de
+1 -1
View File
@@ -481,7 +481,7 @@ namespace Game.AI
if (_me.GetDistance(target) > spellInfo.GetMaxRange(true) ||
_me.GetDistance(target) < spellInfo.GetMinRange(true) ||
!_me.IsWithinLOSInMap(target) || !hasPower)
!_me.IsWithinLOSInMap(target) || !hasPower || _me.HasUnitFlag(UnitFlags.Silenced))
allowMove = true;
((SmartAI)_me.GetAI()).SetCombatMove(allowMove);