Clear afk before joining bg

--HG--
branch : trunk
This commit is contained in:
tvaroh
2009-05-18 00:11:39 +02:00
parent d7740fcd17
commit 2f27bde026
+3
View File
@@ -454,6 +454,9 @@ void WorldSession::HandleBattleGroundPlayerPortOpcode( WorldPacket &recv_data )
_player->SetBattleGroundId(bg->GetInstanceID());
// set the destination team
_player->SetBGTeam(team);
// clear AFK
if(_player->isAFK())
_player->ToggleAFK();
// bg->HandleBeforeTeleportToBattleGround(_player);
sBattleGroundMgr.SendToBattleGround(_player, instanceId);
// add only in HandleMoveWorldPortAck()