Core/Waypoints: Also facing when orientation is set and node is last of path

Port From (https://github.com/TrinityCore/TrinityCore/commit/6a183e7c647e8a3192b91514862343dd9a89ba6e)
This commit is contained in:
hondacrx
2024-02-05 13:25:40 -05:00
parent 7e07cd08e7
commit 14e29e9df4
@@ -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)