Skip to content

Fix Jegantha, the Wellspring mana payment calculations#14628

Open
matoro wants to merge 1 commit intomagefree:masterfrom
matoro:jegantha
Open

Fix Jegantha, the Wellspring mana payment calculations#14628
matoro wants to merge 1 commit intomagefree:masterfrom
matoro:jegantha

Conversation

@matoro
Copy link
Copy Markdown
Contributor

@matoro matoro commented Mar 16, 2026

The issue seems to be that ManaCondition.apply() is called at multiple points: first passing the entire ManaCosts of the overall cost, then passing each individual ManaCost sub-cost. The first call is effectively just checking whether the conditional mana can contribute towards paying the cost at all. So we can just allow it there, and then filter more granularly during the follow-up calls where each sub-cost is checked.

Fixes f0ca05e
Fixes #9796

The issue seems to be that `ManaCondition.apply()` is called at multiple
points: first passing the entire `ManaCosts` of the overall cost, then
passing each individual `ManaCost` sub-cost.  The first call is
effectively just checking whether the conditional mana can contribute
towards paying the cost at all.  So we can just allow it there, and then
filter more granularly during the follow-up calls where each sub-cost is
checked.

Fixes magefree@f0ca05e
Fixes magefree#9796
@matoro matoro marked this pull request as ready for review March 16, 2026 16:57
Copy link
Copy Markdown
Contributor

@Grath Grath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jeffwadsworth
Copy link
Copy Markdown
Contributor

That fix is embarrassingly simple.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mana generated by Jegantha can't pay for mana costs until all generic mana costs are paid

3 participants