Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

API C_PetJournal.SetAbility

From Wowpedia
Jump to: navigation, search

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 history

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

See also