From f74de5ef030b6943286891736a3b538299d230d6 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 17 Nov 2025 21:52:00 +0000 Subject: [PATCH] Fix showtooltip icon display by parsing conditionals from spell names When #showtooltip had an argument with conditionals (e.g., #showtooltip [stance:1] Fireball), the code was trying to find a spell named "[stance:1] Fireball" which doesn't exist. This resulted in no texture being found for the tooltip action, causing incorrect icons. Now the code parses the argument first using GetParsedMsg() to extract just the spell name before creating the tooltip action info. This allows it to properly find the spell in the spellbook and retrieve its correct texture/icon. --- Core.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Core.lua b/Core.lua index bbdbeaa..1cd2c6f 100644 --- a/Core.lua +++ b/Core.lua @@ -1041,8 +1041,10 @@ function CleveRoids.ParseMacro(name) if st and tt ~= "" then showTooltipHasArg = true for _, arg in ipairs(CleveRoids.splitStringIgnoringQuotes(tt)) do - macro.actions.tooltip = CleveRoids.CreateActionInfo(arg) - local action = CleveRoids.CreateActionInfo(CleveRoids.GetParsedMsg(arg)) + -- Parse the arg to extract the spell name from any conditionals + local parsedArg = CleveRoids.GetParsedMsg(arg) + macro.actions.tooltip = CleveRoids.CreateActionInfo(parsedArg) + local action = CleveRoids.CreateActionInfo(parsedArg) action.cmd = "/cast" action.args = arg action.isReactive = CleveRoids.reactiveSpells[action.action]