mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Commands: Remove the option to teleport to "startzone" with .unstuck command
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1032,12 +1032,6 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
if (location_str == "startzone")
|
||||
{
|
||||
player->TeleportTo(player->GetStartPosition());
|
||||
return true;
|
||||
}
|
||||
|
||||
//Not a supported argument
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user