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:
@@ -2373,12 +2373,6 @@ namespace Game.Chat
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (location_str == "startzone")
|
|
||||||
{
|
|
||||||
player.TeleportTo(player.GetStartPosition());
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
//Not a supported argument
|
//Not a supported argument
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1857,14 +1857,6 @@ namespace Game.Entities
|
|||||||
ScheduleDelayedOperation(PlayerDelayedOperations.BGGroupRestore);
|
ScheduleDelayedOperation(PlayerDelayedOperations.BGGroupRestore);
|
||||||
return TeleportTo(m_bgData.joinPos);
|
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)
|
public uint GetStartLevel(Race race, Class playerClass, Optional<uint> characterTemplateId = default)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user