Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia

Returns whether you are currently in a battleground/battlefield.

isActiveBattlefield = C_PvP.IsActiveBattlefield()

Returns[]

isActiveBattlefield
boolean - whether the player is in an active battlefield.

Patch changes[]

Battle for Azeroth Patch 8.1.5 (2019-03-12): Moved to C_PvP.IsActiveBattlefield. The previous alias is deprecated. [1]
Mists of Pandaria Patch 5.1.0 (2012-11-27): Added as InActiveBattlefield.

See also[]