From 14e29e9df4a55e5bd93a9161c080816f86d359a1 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Mon, 5 Feb 2024 13:25:40 -0500 Subject: [PATCH] Core/Waypoints: Also facing when orientation is set and node is last of path Port From (https://github.com/TrinityCore/TrinityCore/commit/6a183e7c647e8a3192b91514862343dd9a89ba6e) --- Source/Game/Movement/Generators/WaypointMovement.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Movement/Generators/WaypointMovement.cs b/Source/Game/Movement/Generators/WaypointMovement.cs index 145f52fd8..27497ed1b 100644 --- a/Source/Game/Movement/Generators/WaypointMovement.cs +++ b/Source/Game/Movement/Generators/WaypointMovement.cs @@ -396,7 +396,7 @@ namespace Game.Movement //! but formationDest contains global coordinates init.MoveTo(waypoint.x, waypoint.y, waypoint.z, _generatePath); - if (waypoint.orientation.HasValue && waypoint.delay != 0) + if (waypoint.orientation.HasValue && (waypoint.delay > 0 || _currentNode == _path.nodes.Count - 1)) init.SetFacing(waypoint.orientation.Value); switch (waypoint.moveType)