From 4920675a3aa0bf182649ac084b5ae39546313b67 Mon Sep 17 00:00:00 2001 From: Jrc13245 Date: Mon, 10 Nov 2025 19:38:44 -0500 Subject: [PATCH] fix errors --- Extensions/Tooltip/Generic.lua | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Extensions/Tooltip/Generic.lua b/Extensions/Tooltip/Generic.lua index 426d607..3eb6479 100644 --- a/Extensions/Tooltip/Generic.lua +++ b/Extensions/Tooltip/Generic.lua @@ -198,21 +198,30 @@ function CleveRoids.IndexActionSlot(slot) CleveRoids.ClearSlot(CleveRoids.reactiveSlots, slot) CleveRoids.ClearSlot(CleveRoids.actionSlots, slot) else - local actionType, _, name, rank = CleveRoids.GetActionButtonInfo(slot) + -- 1.12.1 API: GetActionInfo + local actionType, id, subType = GetActionInfo(slot) + local name, rank + + if actionType == "spell" then + name, rank = GetSpellName(id, BOOKTYPE_SPELL) + elseif actionType == "item" then + name = GetItemInfo(id) + end + if name then local reactiveName = CleveRoids.reactiveSpells[name] and name - local actionSlotName = name..(rank and ("("..rank..")") or "") + local actionSlotName = name .. (rank and ("(" .. rank .. ")") or "") if reactiveName then if not CleveRoids.reactiveSlots[reactiveName] then CleveRoids.reactiveSlots[reactiveName] = slot CleveRoids.reactiveSlots[slot] = reactiveName end - elseif not reactiveName then + else CleveRoids.ClearSlot(CleveRoids.reactiveSlots, slot) end - if actionType == "SPELL" or actionType == "ITEM" then + if actionType == "spell" or actionType == "item" then if not CleveRoids.actionSlots[actionSlotName] then CleveRoids.actionSlots[actionSlotName] = slot CleveRoids.actionSlots[slot] = actionSlotName