diff options
Diffstat (limited to 'src/game/BattleGround.cpp')
-rw-r--r-- | src/game/BattleGround.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp index 68e758855a9..91e52858a65 100644 --- a/src/game/BattleGround.cpp +++ b/src/game/BattleGround.cpp @@ -1135,6 +1135,10 @@ void BattleGround::StartBattleGround() void BattleGround::AddPlayer(Player *plr) { + // remove afk from player + if (plr->HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_AFK)) + plr->ToggleAFK(); + // score struct must be created in inherited class uint64 guid = plr->GetGUID(); |