API C PetBattles.IsInBattle

Returns whether or not there is a pet battle in progress. inBattle = C_PetBattles.IsInBattle

Returns

 * inBattle: Boolean - True if in a pet battle, false if not

Details
This function starts to return true when fires. It returns false again after fires.