castsequence always resets when all spells are done casting, reset=X where X is a number is only for when the sequence has not been advanced in X seconds, reset

This commit is contained in:
Jrc13245
2026-02-27 14:54:19 -05:00
parent a50a5c7e7c
commit 58c7ab8457
+4 -23
View File
@@ -2188,29 +2188,10 @@ function CleveRoids.AdvanceSequence(sequence)
}
end
else
-- At the end of sequence - check if we should auto-reset or stay at last step
local hasNonModifierReset = false
if sequence.reset then
-- Check if there are any reset conditions besides modifier keys
for k, _ in pairs(sequence.reset) do
-- target, combat, secs are non-modifier resets
if k ~= "alt" and k ~= "ctrl" and k ~= "shift" then
hasNonModifierReset = true
break
end
end
end
-- Only auto-reset if:
-- 1. No reset table exists at all, OR
-- 2. Reset table only contains modifier keys (alt/ctrl/shift)
-- Otherwise, stay on the last step and keep casting it until reset fires
if not hasNonModifierReset then
CleveRoids.ResetSequence(sequence)
end
-- If hasNonModifierReset is true, sequence.index stays at max,
-- so GetCurrentSequenceAction will keep returning the last spell
-- Sequence completed all steps - always wrap back to step 1.
-- reset=secs/target/combat only apply as mid-sequence idle resets
-- (matching standard WoW castsequence behavior).
CleveRoids.ResetSequence(sequence)
end
end