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!

API C_PetBattles.GetBattleState

From Wowpedia
Jump to: navigation, search

Returns the current battle state for the pet battle.

battleState = C_PetBattles.GetBattleState()

Returns

battleState
Number - A value representing the state of the battle.

Details

Note that the constants for battle states are not defined in FrameXML. Here are the currently known ones:

LE_PET_BATTLE_STATE_CREATED = 1
LE_PET_BATTLE_STATE_WAITING_PRE_BATTLE = 2
LE_PET_BATTLE_STATE_ROUND_IN_PROGRESS = 3
LE_PET_BATTLE_STATE_WAITING_FOR_ROUND_PLAYBACK = 4
LE_PET_BATTLE_STATE_WAITING_FOR_FRONT_PETS = 5
LE_PET_BATTLE_STATE_CREATED_FAILED = 6
LE_PET_BATTLE_STATE_FINAL_ROUND = 7
LE_PET_BATTLE_STATE_FINISHED = 8

Patch changes

See also