This function or event no longer exists in version 6.0.2 (19034) of World of Warcraft. Please check the main API page for an up-to-date listing of the valid API functions

Returns the number of instances available for a battleground


See also Battlefield functions.

Signature:

numBattlefields = GetNumBattlefields([index])

Arguments:

  • index - Index of a battleground (between 1 and NUM_BATTLEGROUNDS), if using the queue-anywhere UI; not used when choosing an instance for a single battleground (e.g. at a battlemaster or battleground portal) (number)

Returns:

  • numBattlefields - Number of instances currently available for the battleground (number)