Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

WoWInterface » Developer Discussions » Lua/XML Help » GetSpellTabInfo() for Pet Spells ?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off