Core/Misc: Don't teleport players to homebind location when logging out inside instance without a group (#30982)

This commit is contained in:
CraftedRO
2025-05-23 15:45:00 +03:00
committed by GitHub
parent e6b9f215e9
commit 77d20d6aba

View File

@@ -523,10 +523,6 @@ void WorldSession::LogoutPlayer(bool save)
if (Battleground* bg = _player->GetBattleground())
bg->EventPlayerLoggedOut(_player);
///- Teleport to home if the player is in an invalid instance
if (!_player->m_InstanceValid && !_player->IsGameMaster())
_player->TeleportTo(_player->m_homebindMapId, _player->m_homebindX, _player->m_homebindY, _player->m_homebindZ, _player->GetOrientation());
sOutdoorPvPMgr->HandlePlayerLeaveZone(_player, _player->GetZoneId());
for (int i=0; i < PLAYER_MAX_BATTLEGROUND_QUEUES; ++i)