Skip to content

Read "can't block creatures with power N or less" - #324

Merged
valzargaming merged 1 commit into
mainfrom
claude/card-coverage-gaps-sc84tj
Oct 19, 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: "CARDNAME can't block creatures with power 2 or less" (and the "or greater" version) was listed as unsupported.

After: the creature can't be declared as a blocker for an attacker whose current power is in that range.

How: TextParser's restrictions() gains a keyword can't block power N or less|greater. Game::canBlock() checks it through a new blocksOnlyByPower(), which mirrors the attacker-side evadesByPower(). Power is read at block declaration, not as a static ability, so there's no recursion. testCantBlockCreaturesWithSmallPower covers a 2-power attacker that can't be blocked and a 3-power attacker that can. A 100-game simulation passed.


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 5218e15 into main Oct 19, 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