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).