Clear afk before joining bg
--HG-- branch : trunk
This commit is contained in:
@@ -454,6 +454,9 @@ void WorldSession::HandleBattleGroundPlayerPortOpcode( WorldPacket &recv_data )
|
|||||||
_player->SetBattleGroundId(bg->GetInstanceID());
|
_player->SetBattleGroundId(bg->GetInstanceID());
|
||||||
// set the destination team
|
// set the destination team
|
||||||
_player->SetBGTeam(team);
|
_player->SetBGTeam(team);
|
||||||
|
// clear AFK
|
||||||
|
if(_player->isAFK())
|
||||||
|
_player->ToggleAFK();
|
||||||
// bg->HandleBeforeTeleportToBattleGround(_player);
|
// bg->HandleBeforeTeleportToBattleGround(_player);
|
||||||
sBattleGroundMgr.SendToBattleGround(_player, instanceId);
|
sBattleGroundMgr.SendToBattleGround(_player, instanceId);
|
||||||
// add only in HandleMoveWorldPortAck()
|
// add only in HandleMoveWorldPortAck()
|
||||||
|
|||||||
Reference in New Issue
Block a user