Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
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[]
Patch 5.0.4 (2012-08-28): Added.
See also[]
- C_PetBattles.SkipTurn - Use an ability
- C_PetBattles.UseTrap - Use your trap
- C_PetBattles.ChangePet - Change your pet
- C_PetBattles.SkipTurn - Skip your turn