mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-29 00:23:48 +00:00
feat(Core/Players): PlayerFlag helpers (#11294)
* feat(Core/Players): PlayerFlag helpers * Update Player.h * fix build
This commit is contained in:
@@ -1077,7 +1077,7 @@ void Battleground::StartBattleground()
|
||||
void Battleground::AddPlayer(Player* player)
|
||||
{
|
||||
// remove afk from player
|
||||
if (player->HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_AFK))
|
||||
if (player->HasPlayerFlag(PLAYER_FLAGS_AFK))
|
||||
player->ToggleAFK();
|
||||
|
||||
sScriptMgr->OnBattlegroundBeforeAddPlayer(this, player);
|
||||
|
||||
Reference in New Issue
Block a user