From ba423331de65e9f71e69cf8dfeccef1640c31dbc Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sun, 26 Sep 2021 11:40:39 -0400 Subject: [PATCH] Core/SAI: Allow movements for creature using castflag 64 when silenced Port From (https://github.com/TrinityCore/TrinityCore/commit/c0cb8fc1fe8e2079b9ae0f345e5d4ad2b1bfa730) --- Source/Game/AI/SmartScripts/SmartScript.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/AI/SmartScripts/SmartScript.cs b/Source/Game/AI/SmartScripts/SmartScript.cs index 2acea4b1b..9aa71bcbd 100644 --- a/Source/Game/AI/SmartScripts/SmartScript.cs +++ b/Source/Game/AI/SmartScripts/SmartScript.cs @@ -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);