Core/GameObjects: Transport (type 11) improvements
Port From (https://github.com/TrinityCore/TrinityCore/commit/630b60eb0dcd3d9ce41582664ab822b049365431)
This commit is contained in:
@@ -1079,7 +1079,7 @@ namespace Game.Chat
|
||||
[Command("transport", RBACPermissions.CommandDebugTransport)]
|
||||
static bool HandleDebugTransportCommand(CommandHandler handler, string operation)
|
||||
{
|
||||
Transport transport = handler.GetSession().GetPlayer().GetTransport();
|
||||
Transport transport = handler.GetSession().GetPlayer().GetTransport<Transport>();
|
||||
if (!transport)
|
||||
return false;
|
||||
|
||||
|
||||
@@ -959,7 +959,7 @@ namespace Game.Chat
|
||||
areaId, (areaEntry != null ? areaEntry.AreaName[handler.GetSessionDbcLocale()] : unknown),
|
||||
obj.GetPositionX(), obj.GetPositionY(), obj.GetPositionZ(), obj.GetOrientation());
|
||||
|
||||
Transport transport = obj.GetTransport();
|
||||
Transport transport = obj.GetTransport<Transport>();
|
||||
if (transport)
|
||||
{
|
||||
handler.SendSysMessage(CypherStrings.TransportPosition, transport.GetGoInfo().MoTransport.SpawnMap, obj.GetTransOffsetX(), obj.GetTransOffsetY(), obj.GetTransOffsetZ(), obj.GetTransOffsetO(),
|
||||
|
||||
@@ -654,7 +654,7 @@ namespace Game.Chat
|
||||
Player chr = handler.GetSession().GetPlayer();
|
||||
Map map = chr.GetMap();
|
||||
|
||||
Transport trans = chr.GetTransport();
|
||||
Transport trans = chr.GetTransport<Transport>();
|
||||
if (trans)
|
||||
{
|
||||
ulong guid = Global.ObjectMgr.GenerateCreatureSpawnId();
|
||||
|
||||
Reference in New Issue
Block a user