API C PetBattles.GetSelectedAction

Returns the selected action of a specific pet in the pet battle.
 selectedActionType, selectedActionIndex = C_PetBattles.GetSelectedAction()
==Returns==
:;selectedActionType: - 2: Ability, 3: Switch Pet, 4: Trap, 5: Skip turn
:;selectedActionIndex: - Returned values are 1-3, corresponding to the ability buttons from left to right.
==Patch changes==
==See also==
* - Use an ability
* - Use your trap
* - Change your pet
* - Skip your turn
* Pet Battle Functions