Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!
Returns whether you are currently in a battleground/battlefield.
isActiveBattlefield = C_PvP.IsActiveBattlefield()
- Boolean - whether the player is in an active battlefield.
- Patch 8.1.5 (2019-03-12): Moved to C_PvP.IsActiveBattlefield. The previous alias is deprecated. 
- Patch 5.1.0 (2012-11-27): Added as InActiveBattlefield.