API C PetBattles.GetAbilityEffectInfo

Returns the effect info for a pet's ability. value = C_PetBattles.GetAbilityEffectInfo(abilityID, turnIndex, effectIndex, effectName)

Arguments

 * abilityID: Number - The ID of this ability.
 * turnIndex: Number - The turn in question for this ability. This can be obtained from.
 * effectIndex: Number - The effect in question for this ability. This can be obtained from the unparsed description for this ability with extensive string manipulation, but currently no ability has more than 7 effects, so loops work too.
 * effectName: String - One of the effect names from.

Returns

 * value: Number - The information you requested for a specific element of a certain effect of a certain ability at a specific turn.

Remarks
To return the damage variance of Baby Winston's Tesla Cannon:

/dump C_PetBattles.GetAbilityEffectInfo(1625, 1, 1, "variance") [1]=60