Quantcast WoWInterface - View Single Post - GetSpellTabInfo() for Pet Spells ?
View Single Post
06-03-19, 07:49 PM   #1
aallkkaa
A Warpwood Thunder Caller
 
aallkkaa's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2017
Posts: 98
GetSpellTabInfo() for Pet Spells ?

Hello,

I'd like to use something like GetSpellTabInfo() ( or GetFlyoutInfo() ) to get the number of Pet spells in its spellbook. But there seems to be no function to that effect.
Is there?

More details:
I am currently doing something in the likes of:
Code:
repeat
  -- ...
until (GetSpellBookItemName(i, BOOKTYPE_PET)) == nil
. It does work, but, as I learned from trying to fetch Rogue Poisons (flyout), some spell slots may "contain" an empty spell (SpellName == nil). In that case, the following solved it:
Code:
for flyoutSlot = 1, select(3, GetFlyoutInfo(flyoutButtonID)) do
  -- ...
end
It would be useful to me to get all of a given Pet spells, even if it is still too low level to have learned them all yet (as I can with Player spells, including Flyouts).
  Reply With Quote