Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mrbuds opened this issue Jun 9, 2019 · 2 comments
Open

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

mrbuds opened this issue Jun 9, 2019 · 2 comments

Comments

@mrbuds
Copy link

mrbuds commented Jun 9, 2019

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

@Splaser
Copy link

Splaser commented Aug 26, 2019

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
Copy link

Splaser commented Aug 26, 2019

Just replace GetSpellBookItemInfo with GetSpellInfo. lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants