Skip to content

Discard: fix discardedMap#11376

Merged
Hanmac merged 2 commits into
masterfrom
fixDiscard
Jul 25, 2026
Merged

Discard: fix discardedMap#11376
Hanmac merged 2 commits into
masterfrom
fixDiscard

Conversation

@Hanmac

@Hanmac Hanmac commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

This fixes the Connive/Recruit problem with Immutable Map

instead, create a new Map for Discarded cards

Comment thread forge-game/src/main/java/forge/game/ability/SpellAbilityEffect.java Outdated
@Hanmac

Hanmac commented Jul 25, 2026

Copy link
Copy Markdown
Contributor Author

I'm more confused on how a Null might get in there, but i left the check there

@tool4ever tool4ever left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

if only we had some Map interface that doesn't offer mutable methods to enforce it at compile time :)

@Hanmac
Hanmac merged commit 85680b7 into master Jul 25, 2026
9 of 10 checks passed
@Hanmac
Hanmac deleted the fixDiscard branch July 25, 2026 07:20
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.

2 participants