Wowpedia

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

READ MORE

Wowpedia
Advertisement

Selects a battle pet ability to make available in battle.

C_PetJournal.SetAbility(slotIndex, spellIndex, petSpellID)

Arguments[]

slotIndex
number - battle pet slot index, integer between 1 and 3.
spellIndex
number - ability slot index, integer between 1 and 3.
petSpellID
number - pet ability ID to select for the spellIndex slot of the pet in the slotIndex battle pet slot.

Details[]

  • While this function allows you to select abilities outside of those specified by C_PetJournal.GetPetAbilityList (or assign those abilities to other ability slots), those abilities will not be usable in pet battles.

Patch changes[]

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

See also[]

Advertisement