Skip to content

Fix activated-ability X compounding on a reused cost - #573

Merged
radar merged 1 commit into
masterfrom
fix/activated-x-cost-shared-state
Nov 9, 2026
Merged

radar merged 1 commit into
masterfrom
fix/activated-x-cost-shared-state

Conversation

@radar

@radar radar commented Nov 9, 2026

Copy link
Copy Markdown
Owner

ActivateAbility multiplied the cost's current X by itself, so a reused Costs::Mana compounded (X=3 then X=2 owed 6). Costs::Mana#choose_x! now works from the printed symbol count. Note: abilities built with the costs DSL get a fresh cost each time, so this only bites abilities that memoize their cost.

🤖 Generated with Claude Code

Costs::Mana#choose_x! multiplies from the printed {X} count instead of the current value.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@radar
radar merged commit f896c5e into master Nov 9, 2026
2 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.

1 participant