Skip to content

Read "if you've committed a crime this turn" - #428

Merged
valzargaming merged 1 commit into
mainfrom
claude/card-coverage-gaps-sc84tj
Oct 24, 2026
Merged

valzargaming merged 1 commit into
mainfrom
claude/card-coverage-gaps-sc84tj

Conversation

@valzargaming

Copy link
Copy Markdown
Member

Requested by Val · project thread

Before: Outlaws of Thunder Junction's "if you've committed a crime this turn" (as an intervening-if trigger condition, or "as long as" on a static bonus) was listed as unsupported text. The engine fired "Whenever you commit a crime" but didn't remember that a crime had happened.

After: both wordings read. A crime (rule 700.13: targeting an opponent, or something of theirs) marks the player for the rest of that turn. The mark is saved with the game, so a match resumed later keeps it.

How: GamePlayer gains crimeTurn, which loads as 0 from older saves. It is set where Game::targetedTriggers() already detects a crime. The crime condition compares it with the current turn and is shared by TextParser::interveningIf() and staticCondition(). The new fixtures and test cover targeting your own creature (no crime) and an opponent, a save/load round trip, the end-step draw and expiry the next turn. Recognition only; the ledger's source pins are refreshed.


Generated by Claude Code

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FFHHk3MFEhWxdBccQvEG7C
@valzargaming
valzargaming merged commit 05753bd into main Oct 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants