silverwind / idTip

WoW Addon: Adds IDs to the ingame tooltips
BSD 2-Clause "Simplified" License
41 stars 32 forks source link

Warlock's Pets spells ids from spellbook are wrong #48

Open mrbuds opened 5 years ago

mrbuds commented 5 years ago

From spellbook "Pet" tab, spellids are wrong, but they are good when they are moved to action bars img img

Splaser commented 5 years ago

hooksecurefunc("SpellButton_OnEnter", function(self) local slot = SpellBook_GetSpellBookSlot(self) --local spellID = select(2, GetSpellBookItemInfo(slot, SpellBookFrame.bookType)) local spellID = select(7, GetSpellInfo(slot, SpellBookFrame.bookType))

addLine(GameTooltip, spellID, kinds.spell) end)

Here is my solution. GetSpellBookItemInfo is currently broken for petspell.

Splaser commented 5 years ago

Just replace GetSpellBookItemInfo with GetSpellInfo. lol