Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API C PetBattles.GetAbilityEffectInfo

Last wiki revision 2022-08-01

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

  • abilityID: - The ID of this ability.
  • turnIndex: - The turn in question for this ability. This can be obtained from.
  • effectIndex: - 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: - One of the effect names from.
  • value: - The information you requested for a specific element of a certain effect of a certain ability at a specific turn.

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

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

  • - can be used to obtain the turnIndex for procs
  • - generates a list of all effectNames currently in the game
  • - return common general ability information
  • Pet Battle Functions

Source

https://warcraft.wiki.gg/wiki/API_C_PetBattles.GetAbilityEffectInfo · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.