From e340fda8b69488577963fba1f050bd6135938fac Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sat, 2 Oct 2021 20:22:46 -0400 Subject: [PATCH] Core/Commands: Remove the option to teleport to "startzone" with .unstuck command Port From (https://github.com/TrinityCore/TrinityCore/commit/f6f2de76c79e8de7aba85ea5ebbe6450b2c04585) --- Source/Game/Chat/Commands/MiscCommands.cs | 6 ------ Source/Game/Entities/Player/Player.cs | 8 -------- 2 files changed, 14 deletions(-) diff --git a/Source/Game/Chat/Commands/MiscCommands.cs b/Source/Game/Chat/Commands/MiscCommands.cs index ce36536e4..32b74b85e 100644 --- a/Source/Game/Chat/Commands/MiscCommands.cs +++ b/Source/Game/Chat/Commands/MiscCommands.cs @@ -2373,12 +2373,6 @@ namespace Game.Chat return true; } - if (location_str == "startzone") - { - player.TeleportTo(player.GetStartPosition()); - return true; - } - //Not a supported argument return false; } diff --git a/Source/Game/Entities/Player/Player.cs b/Source/Game/Entities/Player/Player.cs index ae1b2e426..025c05016 100644 --- a/Source/Game/Entities/Player/Player.cs +++ b/Source/Game/Entities/Player/Player.cs @@ -1857,14 +1857,6 @@ namespace Game.Entities ScheduleDelayedOperation(PlayerDelayedOperations.BGGroupRestore); return TeleportTo(m_bgData.joinPos); } - public WorldLocation GetStartPosition() - { - PlayerInfo info = Global.ObjectMgr.GetPlayerInfo(GetRace(), GetClass()); - uint mapId = info.MapId; - if (GetClass() == Class.Deathknight && HasSpell(50977)) - mapId = 0; - return new WorldLocation(mapId, info.PositionX, info.PositionY, info.PositionZ, 0); - } public uint GetStartLevel(Race race, Class playerClass, Optional characterTemplateId = default) {