Lore archive · Warcraft Wiki, 2023 dump
API C PetBattles.GetAbilityProcTurnIndex
Last wiki revision 2022-08-01
Returns the turn index for a specific ability and proc type. turnIndex = C_PetBattles.GetAbilityProcTurnIndex(abilityID, procType)
- abilityID: - ID of the ability.
- procType: - Index corresponding to a proc type.
- turnIndex: - Number of rounds that the ability has been in play.
Proc types are defined in FrameXML/Constants.lua. They are currently: PET_BATTLE_EVENT_ON_APPLY = 0; PET_BATTLE_EVENT_ON_DAMAGE_TAKEN = 1 PET_BATTLE_EVENT_ON_DAMAGE_DEALT = 2 PET_BATTLE_EVENT_ON_HEAL_TAKEN = 3 PET_BATTLE_EVENT_ON_HEAL_DEALT = 4 PET_BATTLE_EVENT_ON_AURA_REMOVED = 5 PET_BATTLE_EVENT_ON_ROUND_START = 6 PET_BATTLE_EVENT_ON_ROUND_END = 7 PET_BATTLE_EVENT_ON_TURN = 8 PET_BATTLE_EVENT_ON_ABILITY = 9 PET_BATTLE_EVENT_ON_SWAP_IN = 10 PET_BATTLE_EVENT_ON_SWAP_OUT = 11
Since there are only 12 possible values for procType, you can usually afford to just do a loop such as instead of finding out the actual procType.
- - the only known use for turnIndex is in this function
- Pet Battle Functions
Source
https://warcraft.wiki.gg/wiki/API_C_PetBattles.GetAbilityProcTurnIndex · 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.