Core/SAI: Fix SMART_ACTION_SET_MOVEMENT_SPEED behavior

Port From (https://github.com/TrinityCore/TrinityCore/commit/aa81d8979f72ad093e8bf7ef0966852236a717d5)
This commit is contained in:
hondacrx
2022-01-06 00:07:18 -05:00
parent dc3cd40d15
commit b14121d677
+1 -1
View File
@@ -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;
}