C_PetBattles.GetSelectedAction

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 5.0.4

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

selectedActionType, selectedActionIndex = C_PetBattles.GetSelectedAction()

Returns

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

Patch changes

Mists of Pandaria Patch 5.0.4 (2012-08-28): Added.

See also