From a54d531a69f43c26ddd17028cd1f5914fd4544f4 Mon Sep 17 00:00:00 2001 From: Jrc13245 Date: Thu, 5 Feb 2026 19:35:27 -0500 Subject: [PATCH] fix rare castsequence conditional error --- Core.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Core.lua b/Core.lua index 10ada4c..4b7916f 100644 --- a/Core.lua +++ b/Core.lua @@ -3635,7 +3635,16 @@ function CleveRoids.DoCastSequence(sequence) attempted = cast_by_name(resolvedText or active.action) else local final = CleveRoids.DoWithConditionals(actionText, nil, CleveRoids.FixEmptyTarget, false, CastSpellByName) - if final then attempted = cast_by_name(final) end + if final then + -- DoWithConditionals returns true (boolean) when it already cast the spell, + -- or a string spell name when conditionals were skipped. Only call cast_by_name + -- if we got a string back (spell wasn't cast yet). + if type(final) == "string" then + attempted = cast_by_name(final) + else + attempted = true -- Spell was already cast inside DoWithConditionals + end + end end if not attempted then