Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
(Created page with "{{wowapi}} Returns pet battle abilities available to a particular battle pet species. idTable, levelTable = C_PetJournal.GetPetAbilityList(speciesID[, idTable[, levelTable]])...")
 
(update signature)
Tag: WoW API docs
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{wowapi}}
 
{{wowapi}}
 
Returns pet battle abilities available to a particular battle pet species.
 
Returns pet battle abilities available to a particular battle pet species.
idTable, levelTable = C_PetJournal.GetPetAbilityList(speciesID[, idTable[, levelTable]])
+
idTable, levelTable = C_PetJournal.GetPetAbilityList(speciesID [, idTable, levelTable])
   
 
== Arguments ==
 
== Arguments ==
Line 10: Line 10:
 
== Returns ==
 
== Returns ==
 
; idTable : Table - An array of ability IDs available to the battle pet species.
 
; idTable : Table - An array of ability IDs available to the battle pet species.
; levelTable : Table - An array of levels at which the corresponding ability in the <tt>idTable</tt> becomes available to the species.
+
; levelTable : Table - An array of levels at which the corresponding ability in the <code>idTable</code> becomes available to the species.
   
 
== Patch history ==
 
== Patch history ==
Line 16: Line 16:
   
 
== See also ==
 
== See also ==
  +
* {{api|C_PetBattles.GetAbilityInfoByID}} - Get information about a pet ability when you already know its abilityID
* {{api|C_PetJournal.GetPetAbilityInfo}}
 
  +
* {{api|C_PetJournal.GetPetAbilityInfo}} - Get information about a pet ability when you only know the pet and slot
  +
* [[World_of_Warcraft_API#Pet_Battle_Functions | Pet Battle Functions]]

Revision as of 22:52, 22 April 2020

Returns pet battle abilities available to a particular battle pet species.

idTable, levelTable = C_PetJournal.GetPetAbilityList(speciesID [, idTable, levelTable])

Arguments

speciesID
Number - Battle pet species ID to query the abilities of.
idTable
Optional Table - Table that will be used to return ability ID information; a new table will be created if this argument is omitted.
levelTable
Optional Table - Table that will be used to return ability level requirement information; a new table will be created if this argument is omitted.

Returns

idTable
Table - An array of ability IDs available to the battle pet species.
levelTable
Table - An array of levels at which the corresponding ability in the idTable becomes available to the species.

Patch history

Mists of Pandaria Patch 5.0.4 (2012-08-28): Added.

See also