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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user