Hello,
Player on the BG (Warsong) captures flag, logout and appears at home base graveyard with flag near player,
takes flag and go to base.
Should be (as on the off server):
Logout on the BG caused teleport to home bind location.
Patch:
--- WorldSession.cpp.bak 2009-12-24 01:33:29.000000000 +0200
+++ WorldSession.cpp 2009-12-24 01:32:41.000000000 +0200
@@ -355,10 +355,13 @@
_player->BuildPlayerRepop();
_player->RepopAtGraveyard();
}
-
//drop a flag if player is carrying it
+ //also teleport player to home location (prevent cheating)
if(BattleGround *bg = _player->GetBattleGround())
+ {
bg->EventPlayerLoggedOut(_player);
+ _player->TeleportTo(_player->m_homebindMapId, _player->m_homebindX, _player->m_homebindY, _player->m_homebindZ, _player->GetOrientation());
+ }
///- Remove from OutdoorPvP
sOutdoorPvPMgr.HandlePlayerLeaveZone(_player,_player->GetZoneId());
Any suggestions are welcome.