Wowpedia
Advertisement
Game Flavors
Links
Patch
Added in 3.1.0 / 1.13.2

Returns information about a battleground type.

name, canEnter, isHoliday, isRandom, battleGroundID, info = GetBattlegroundInfo(index)

Arguments

index 
Number: battleground type index, 1 to GetNumBattlegroundTypes().

Returns

name 
string - Localized battleground name.
canEnter 
boolean - 1 if the player can queue for this battleground, nil otherwise.
isHoliday 
boolean - 1 if this battleground is currently granting bonus honor due to a battleground holiday, nil otherwise.
isRandom 
boolean - 1 if this battleground is the random
battleGroundID 
number - the ID associated with the Battleground ( 1 for Alterac Valley, 2 for Warsong Gulch, 3 for Arathi Basin, 7 for Eye of the Storm, 9 for Strand of the Ancients, 30 for Isle of Conquest, 32 for the random, 108 for Twin Peaks and 120 for The Battle for Gilneas)
info 
string - Localized information about the battleground (for the random battleground it returns the string of Alterac).
Advertisement