[8427] remove afk-flag at bg-join
Signed-off-by: balrok <[email protected]> --HG-- branch : trunk
This commit is contained in:
@@ -1135,6 +1135,10 @@ void BattleGround::StartBattleGround()
|
|||||||
|
|
||||||
void BattleGround::AddPlayer(Player *plr)
|
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
|
// score struct must be created in inherited class
|
||||||
|
|
||||||
uint64 guid = plr->GetGUID();
|
uint64 guid = plr->GetGUID();
|
||||||
|
|||||||
Reference in New Issue
Block a user