fix empty argument lines causing stopmacro

This commit is contained in:
Jrc13245
2025-12-13 13:48:49 -05:00
parent b789448553
commit 36ff274649
+5 -1
View File
@@ -2122,7 +2122,11 @@ function CleveRoids.DoWithConditionals(msg, hook, fixEmptyTargetFunc, targetBefo
else
result = CleveRoids.ExecuteMacroByName(string.sub(msg, 2, -2))
end
else -- This 'else' corresponds to 'if string.sub(msg, 1, 1) == "{"...'
elseif msg == "" or msg == nil then
-- Empty action (conditionals passed but no spell to cast)
-- Return false so stopmacro doesn't block subsequent lines
result = false
else
local castMsg = msg
-- FLEXIBLY check for any rank text like "(Rank 9)" before adding the highest rank
if action == CastSpellByName and not string.find(msg, "%(.*%)") then