Core/Unit: Ignore On Transport spline movements if the Unit isn't on a transport anymore

Port From (https://github.com/TrinityCore/TrinityCore/commit/134fa225108381969b4a7dc22b4a3076a79c21f6)
This commit is contained in:
hondacrx
2021-12-17 19:39:58 -05:00
parent aeb266b090
commit fc95164995
@@ -1721,6 +1721,8 @@ namespace Game.Entities
ITransport transport = GetDirectTransport();
if (transport != null)
transport.CalculatePassengerPosition(ref x, ref y, ref z, ref o);
else
return;
}
if (HasUnitState(UnitState.CannotTurn))
o = GetOrientation();