Skip to content

Commit 77d20d6

Browse files
authored
Core/Misc: Don't teleport players to homebind location when logging out inside instance without a group (#30982)
1 parent e6b9f21 commit 77d20d6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/server/game/Server/WorldSession.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -523,10 +523,6 @@ void WorldSession::LogoutPlayer(bool save)
523523
if (Battleground* bg = _player->GetBattleground())
524524
bg->EventPlayerLoggedOut(_player);
525525

526-
///- Teleport to home if the player is in an invalid instance
527-
if (!_player->m_InstanceValid && !_player->IsGameMaster())
528-
_player->TeleportTo(_player->m_homebindMapId, _player->m_homebindX, _player->m_homebindY, _player->m_homebindZ, _player->GetOrientation());
529-
530526
sOutdoorPvPMgr->HandlePlayerLeaveZone(_player, _player->GetZoneId());
531527

532528
for (int i=0; i < PLAYER_MAX_BATTLEGROUND_QUEUES; ++i)

0 commit comments

Comments
 (0)