mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[8427] remove afk-flag at bg-join
Signed-off-by: balrok <der-coole-carl@gmx.net>
This commit is contained in:
parent
5d50bb16b8
commit
beae3fe00f
2 changed files with 5 additions and 1 deletions
|
|
@ -1099,6 +1099,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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue