Skip to content

Commit

Permalink
tg123#76: Add FindBaseSpell fallback option
Browse files Browse the repository at this point in the history
  • Loading branch information
hewozuoai committed Jan 13, 2025
1 parent d600639 commit df6bd22
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Myslot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,14 @@ function MySlot:RecoverData(msg, opt)
end
end

-- another fallback option - try to get base spell
if not GetCursorInfo() then
local baseSpellId = FindBaseSpellByID(index)
if baseSpellId then
PickupSpell(baseSpellId)
end
end

if not GetCursorInfo() then
MySlot:Print(L["Ignore unlearned skill [id=%s], %s"]:format(index, GetSpellLink(index) or ""))
end
Expand Down

0 comments on commit df6bd22

Please sign in to comment.