From 951dfc502d68cf9c8b87b14440534fd5d606f7d0 Mon Sep 17 00:00:00 2001 From: hewozuoai Date: Fri, 17 Jan 2025 04:22:05 -0500 Subject: [PATCH] #76: Add FindBaseSpell fallback option (#77) * #76: Add FindBaseSpell fallback option * Update Myslot.lua Co-authored-by: Boshi Lian --------- Co-authored-by: hewozuoai Co-authored-by: Boshi Lian --- Myslot.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Myslot.lua b/Myslot.lua index e1b11ad..0c6bf81 100644 --- a/Myslot.lua +++ b/Myslot.lua @@ -752,6 +752,14 @@ function MySlot:RecoverData(msg, opt) end end + -- another fallback option - try to get base spell + if not GetCursorInfo() and FindBaseSpellByID 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