mirror of
https://github.com/brues-code/SuperCleveRoidMacros.git
synced 2026-09-16 03:38:00 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user