[Phase 2.4] The Burst (LIFO Stack & Priority Passing State Machine) #10

Open
opened 2026-11-17 06:12:18 +00:00 by john4064 · 0 comments
Owner

Goal

Implement the LIFO Burst Stack and priority-passing state machine for Mugic, Attacks, and Activated/Triggered abilities.

Metadata

  • Phase / Step: Phase 2.4
  • Depends On: #4, #9
  • Unlocks: #25, #26
  • Target Crates / Paths: crates/chaotic_core/src/burst.rs, crates/chaotic_core/src/effects.rs
  • Line Budget Plan: Production .rs <= 400 lines, test .rs <= 600 lines, mod.rs < 80 lines (AGENTS.md Section 2.3)

Acceptance Criteria

  • Push Attacks, Mugic (requiring one specific friendly Creature matching MugicCasterFilter to pay the full MugicCounters cost), activated abilities (Expend, Sacrifice), and triggered abilities onto the LIFO Burst.
  • Enforce priority passing between Active Player and Opponent: resolve top stack item only after 2 consecutive passes, then reopen priority cleanly.
  • Handle fizzled targets cleanly if a targeted Creature or Battlegear leaves the board before resolution.
  • Execute all Dawn of Perim keywords (Intimidate, Recklessness, Support, Invisibility: Strike X, Surprise, Hive) strictly via EffectHook (zero hardcoded card IDs).
## Goal Implement the LIFO Burst Stack and priority-passing state machine for Mugic, Attacks, and Activated/Triggered abilities. ## Metadata - **Phase / Step:** Phase 2.4 - **Depends On:** #4, #9 - **Unlocks:** #25, #26 - **Target Crates / Paths:** `crates/chaotic_core/src/burst.rs`, `crates/chaotic_core/src/effects.rs` - **Line Budget Plan:** Production `.rs` <= 400 lines, test `.rs` <= 600 lines, `mod.rs` < 80 lines (`AGENTS.md` Section 2.3) ## Acceptance Criteria - [ ] Push Attacks, Mugic (requiring one specific friendly Creature matching `MugicCasterFilter` to pay the full `MugicCounters` cost), activated abilities (`Expend`, `Sacrifice`), and triggered abilities onto the LIFO Burst. - [ ] Enforce priority passing between Active Player and Opponent: resolve top stack item only after 2 consecutive passes, then reopen priority cleanly. - [ ] Handle fizzled targets cleanly if a targeted Creature or Battlegear leaves the board before resolution. - [ ] Execute all *Dawn of Perim* keywords (`Intimidate`, `Recklessness`, `Support`, `Invisibility: Strike X`, `Surprise`, `Hive`) strictly via `EffectHook` (zero hardcoded card IDs).
Sign in to join this conversation.
No description provided.