WoW API: GetNumBattlefields
← WoW API < GetNumBattlefields
Returns the number of available instances of the last-selected battleground type.
numInstances = GetNumBattlefields();
ReturnsEdit
- numInstances
- Number - Number of instances of the last-selected battleground type that are currently running.
NotesEdit
- Battleground types are selected by RequestBattlegroundInstanceInfo(index) function.