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

This commit is contained in:
Shauren
2021-10-02 19:57:37 +02:00
parent 46004d4fca
commit f6f2de76c7
3 changed files with 0 additions and 17 deletions

View File

@@ -23757,16 +23757,6 @@ void Player::ReportedAfkBy(Player* reporter)
reporter->SendDirectMessage(reportAfkResult.Write());
}
WorldLocation Player::GetStartPosition() const
{
PlayerInfo const* info = sObjectMgr->GetPlayerInfo(getRace(), getClass());
ASSERT(info);
uint32 mapId = info->mapId;
if (getClass() == CLASS_DEATH_KNIGHT && HasSpell(50977))
mapId = 0;
return WorldLocation(mapId, info->positionX, info->positionY, info->positionZ, 0);
}
uint8 Player::GetStartLevel(uint8 race, uint8 playerClass, Optional<int32> characterTemplateId) const
{
uint8 startLevel = sWorld->getIntConfig(CONFIG_START_PLAYER_LEVEL);

View File

@@ -2357,7 +2357,6 @@ class TC_GAME_API Player : public Unit, public GridObject<Player>
float m_homebindY;
float m_homebindZ;
WorldLocation GetStartPosition() const;
uint8 GetStartLevel(uint8 race, uint8 playerClass, Optional<int32> characterTemplateId) const;
// currently visible objects at player client

View File

@@ -1032,12 +1032,6 @@ public:
return true;
}
if (location_str == "startzone")
{
player->TeleportTo(player->GetStartPosition());
return true;
}
//Not a supported argument
return false;