API C PetJournal.SetAbility

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  slot of the pet in the   battle pet slot.

Details

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