Core/Commands: Remove the option to teleport to "startzone" with .unstuck command

Port From (https://github.com/TrinityCore/TrinityCore/commit/f6f2de76c79e8de7aba85ea5ebbe6450b2c04585)
This commit is contained in:
hondacrx
2021-10-02 20:22:46 -04:00
parent d5acfbc38b
commit e340fda8b6
2 changed files with 0 additions and 14 deletions
@@ -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;
}
-8
View File
@@ -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<uint> characterTemplateId = default)
{