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:
@@ -1721,6 +1721,8 @@ namespace Game.Entities
|
|||||||
ITransport transport = GetDirectTransport();
|
ITransport transport = GetDirectTransport();
|
||||||
if (transport != null)
|
if (transport != null)
|
||||||
transport.CalculatePassengerPosition(ref x, ref y, ref z, ref o);
|
transport.CalculatePassengerPosition(ref x, ref y, ref z, ref o);
|
||||||
|
else
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if (HasUnitState(UnitState.CannotTurn))
|
if (HasUnitState(UnitState.CannotTurn))
|
||||||
o = GetOrientation();
|
o = GetOrientation();
|
||||||
|
|||||||
Reference in New Issue
Block a user