diff options
author | tvaroh <none@none> | 2009-05-18 00:11:39 +0200 |
---|---|---|
committer | tvaroh <none@none> | 2009-05-18 00:11:39 +0200 |
commit | 2f27bde026d3b514d696b17fd415c9218f5496d7 (patch) | |
tree | ffd9da75b7cbcedf8c65e733f6ff9ee879fe28c7 /src/game | |
parent | d7740fcd178c0125d8917009034d42c8c5ae2517 (diff) |
Clear afk before joining bg
--HG--
branch : trunk
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/BattleGroundHandler.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/BattleGroundHandler.cpp b/src/game/BattleGroundHandler.cpp index b1522c939f7..1cb0084a1d1 100644 --- a/src/game/BattleGroundHandler.cpp +++ b/src/game/BattleGroundHandler.cpp @@ -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() |