Core/GameObjects: Transport (type 11) improvements
Port From (https://github.com/TrinityCore/TrinityCore/commit/630b60eb0dcd3d9ce41582664ab822b049365431)
This commit is contained in:
@@ -1254,7 +1254,12 @@ namespace Game.Entities
|
||||
return;
|
||||
}
|
||||
|
||||
uint mapId = GetTransport() ? (uint)GetTransport().GetGoInfo().MoTransport.SpawnMap : GetMapId();
|
||||
uint mapId = GetMapId();
|
||||
ITransport transport = GetTransport();
|
||||
if (transport != null)
|
||||
if (transport.GetMapIdForSpawning() >= 0)
|
||||
mapId = (uint)transport.GetMapIdForSpawning();
|
||||
|
||||
SaveToDB(mapId, data.SpawnDifficulties);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user