API C PetBattles.GetSelectedAction

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.