Skip to content

Commit 951dfc5

Browse files
hewozuoaihewozuoaitg123
authored
#76: Add FindBaseSpell fallback option (#77)
* #76: Add FindBaseSpell fallback option * Update Myslot.lua Co-authored-by: Boshi Lian <[email protected]> --------- Co-authored-by: hewozuoai <[email protected]> Co-authored-by: Boshi Lian <[email protected]>
1 parent e778a71 commit 951dfc5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Myslot.lua

+8
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,14 @@ function MySlot:RecoverData(msg, opt)
752752
end
753753
end
754754

755+
-- another fallback option - try to get base spell
756+
if not GetCursorInfo() and FindBaseSpellByID then
757+
local baseSpellId = FindBaseSpellByID(index)
758+
if baseSpellId then
759+
PickupSpell(baseSpellId)
760+
end
761+
end
762+
755763
if not GetCursorInfo() then
756764
MySlot:Print(L["Ignore unlearned skill [id=%s], %s"]:format(index, GetSpellLink(index) or ""))
757765
end

0 commit comments

Comments
 (0)