From b14121d67766388fcdaccfc8227a9c2c1ce9be7f Mon Sep 17 00:00:00 2001 From: hondacrx Date: Thu, 6 Jan 2022 00:07:18 -0500 Subject: [PATCH] Core/SAI: Fix SMART_ACTION_SET_MOVEMENT_SPEED behavior Port From (https://github.com/TrinityCore/TrinityCore/commit/aa81d8979f72ad093e8bf7ef0966852236a717d5) --- 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 25ca36f3e..2de488c03 100644 --- a/Source/Game/AI/SmartScripts/SmartScript.cs +++ b/Source/Game/AI/SmartScripts/SmartScript.cs @@ -2417,7 +2417,7 @@ namespace Game.AI foreach (var target in targets) if (IsCreature(target)) - _me.SetSpeed((UnitMoveType)e.Action.movementSpeed.movementType, speed); + target.ToCreature().SetSpeed((UnitMoveType)e.Action.movementSpeed.movementType, speed); break; }