fix time comparison icon issues and fix firstaction slashcommand

This commit is contained in:
Jrc13245
2026-01-21 16:14:26 -05:00
parent 11081a4858
commit 769c1326fe
3 changed files with 18 additions and 6 deletions
+5 -2
View File
@@ -1285,11 +1285,14 @@ function CleveRoids.ExecuteMacroBody(body,inline)
-- This allows /nofirstaction to clear the stopMacroFlag set by /firstaction
local _, _, nofirstactionArgs = string.find(trimmed, "^/nofirstaction%s*(.*)")
if nofirstactionArgs then
-- Capture stopOnCastFlag BEFORE DoNoFirstAction clears it
-- If it was true, stopMacroFlag was set by /firstaction, not /stopmacro
local wasFirstActionActive = CleveRoids.stopOnCastFlag
CleveRoids.DoNoFirstAction(nofirstactionArgs)
-- Also clear stopMacroFlag if it was set by firstaction mechanism
-- (but NOT if it was set by explicit /stopmacro)
if CleveRoids.stopOnCastFlag == false and CleveRoids.stopMacroFlag then
-- stopOnCastFlag is false (just cleared by DoNoFirstAction), stopMacroFlag is true
if wasFirstActionActive and CleveRoids.stopMacroFlag then
-- stopOnCastFlag was true before we cleared it, and stopMacroFlag is set
-- This means stopMacroFlag was set by the firstaction mechanism, clear it
CleveRoids.stopMacroFlag = false
if CleveRoids.macroRefDebug then