Core/Players: Allow teleporting to a specific instance id
Port From (https://github.com/TrinityCore/TrinityCore/commit/25c0aaa83fede6cd5214da00bb08a21c0b28c4be)
This commit is contained in:
@@ -254,7 +254,7 @@ namespace Game
|
||||
player.m_InstanceValid = true;
|
||||
|
||||
Map oldMap = player.GetMap();
|
||||
Map newMap = Global.MapMgr.CreateMap(loc.GetMapId(), player);
|
||||
Map newMap = GetPlayer().GetTeleportDestInstanceId().HasValue ? Global.MapMgr.FindMap(loc.GetMapId(), GetPlayer().GetTeleportDestInstanceId().Value) : Global.MapMgr.CreateMap(loc.GetMapId(), GetPlayer());
|
||||
|
||||
if (player.IsInWorld)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user