Core/Players: Allow teleporting to a specific instance id

Port From (https://github.com/TrinityCore/TrinityCore/commit/25c0aaa83fede6cd5214da00bb08a21c0b28c4be)
This commit is contained in:
hondacrx
2022-06-12 00:22:32 -04:00
parent bbaf66df51
commit f66c3aec14
5 changed files with 27 additions and 11 deletions
+1 -1
View File
@@ -427,7 +427,7 @@ namespace Game.Chat
// before GM
float x, y, z;
gmPlayer.GetClosePoint(out x, out y, out z, player.GetCombatReach());
player.TeleportTo(gmPlayer.GetMapId(), x, y, z, player.GetOrientation());
player.TeleportTo(gmPlayer.GetMapId(), x, y, z, player.GetOrientation(), 0, gmPlayer.GetInstanceId());
}
return true;