Core/GameObjects: Transport (type 11) improvements
Port From (https://github.com/TrinityCore/TrinityCore/commit/630b60eb0dcd3d9ce41582664ab822b049365431)
This commit is contained in:
@@ -209,7 +209,7 @@ namespace Game.Entities
|
||||
|
||||
MoveSplineInit init = new(this);
|
||||
init.MoveTo(GetPositionX(), GetPositionY(), GetPositionZ(), false);
|
||||
if (GetTransport())
|
||||
if (GetTransport() != null)
|
||||
init.DisableTransportPathTransformations(); // It makes no sense to target global orientation
|
||||
init.SetFacing(ori);
|
||||
|
||||
@@ -1834,7 +1834,7 @@ namespace Game.Entities
|
||||
if (GetVehicle() != null)
|
||||
return GetVehicleBase().GetGUID();
|
||||
if (GetTransport() != null)
|
||||
return GetTransport().GetGUID();
|
||||
return GetTransport().GetTransportGUID();
|
||||
|
||||
return ObjectGuid.Empty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user