From df6bd22adaf971bf572079c1c33acffd1d823f43 Mon Sep 17 00:00:00 2001 From: hewozuoai Date: Sun, 12 Jan 2025 19:18:52 -0500 Subject: [PATCH] #76: Add FindBaseSpell fallback option --- Myslot.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Myslot.lua b/Myslot.lua index c3d967b..1bc2d1b 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() 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