Returns information about available battlegrounds
See also Battlefield functions.
Signature:
localizedName,
canEnter,
isHoliday,
isRandom,
BattleGroundID,
mapDescription
=
GetBattlegroundInfo(index)
Arguments:
index
- Index of a battleground (between 1 andGetNumBattlegroundTypes()
) (number
)
Returns:
localizedName
- Localized name of the battleground (Alterac Valley, Warsong Gulch, etc.) (string
)canEnter
- 1 if the player can enter the battleground; otherwise nil (1nil
)isHoliday
- 1 if a "holiday" offering bonus honor is currently active for the battleground; otherwise nil (1nil
)isRandom
- 1 if the index is the entry for a random battleground, else nil (1nil
)BattleGroundID
- ID of the battleground. (number
)mapDescription
- Localized description of the battleground (string
)