API C_PetBattles.GetSelectedAction

From Wowpedia
Jump to: navigation, search

Returns the selected action of a specific pet in the pet battle.

selectedActionType, selectedActionIndex = C_PetBattles.GetSelectedAction()


Number - 2: Ability, 3: Switch Pet, 4: Trap, 5: Skip turn
Number - Returned values are 1-3, corresponding to the ability buttons from left to right.

Patch history

Mists of Pandaria

Mists of Pandaria

Patch 5.0.4 (2012-08-28): Added.

See also