Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
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 C_PetBattles.GetAbilityProcTurnIndex.
- 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 C_PetBattles.GetAllEffectNames.
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
Patch changes[]
Patch 5.0.4 (2012-08-28): Added.
See also[]
- C_PetBattles.GetAbilityProcTurnIndex - can be used to obtain the turnIndex for procs
- C_PetBattles.GetAllEffectNames - generates a list of all effectNames currently in the game
- C_PetBattles.GetAbilityInfo - return common general ability information
- Pet Battle Functions