mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[7255] Allows saving characters in Battle Grounds.
* Now player can join to BG after logout during 5 minutes, if BG in progress. * All players after server crash or restart should appear at the battlemaster Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
8af53064eb
commit
75121a5823
11 changed files with 162 additions and 52 deletions
|
|
@ -303,10 +303,6 @@ void WorldSession::LogoutPlayer(bool Save)
|
|||
_player->RepopAtGraveyard();
|
||||
}
|
||||
|
||||
///- Remove player from battleground (teleport to entrance)
|
||||
if(_player->InBattleGround())
|
||||
_player->LeaveBattleground();
|
||||
|
||||
///- 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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue