Skip to content

Fixed duplicates in commander generated decks#10000

Open
kojotak wants to merge 1 commit intoCard-Forge:masterfrom
kojotak:9985_toothy
Open

Fixed duplicates in commander generated decks#10000
kojotak wants to merge 1 commit intoCard-Forge:masterfrom
kojotak:9985_toothy

Conversation

@kojotak
Copy link
Contributor

@kojotak kojotak commented Mar 6, 2026

Possible fix for #9985

I don't know why, but Pir, Imaginative Rascal loaded from CardRelationMatrixGenerator.cardPools has collectorNumner N.A.. That is not the case if loading from StaticData.instance().getCommonCards() (this returns 11 and 1050). The N.A. collectorNumber results in equals method returning false in an attempt to remove this card from the deck, causing Pir, Imaginative Rascal beeing duplicated (in main deck and as a commander partner).

With this change, the card generated deck for Toothy, Imaginary Friend can be loaded:

image

@kojotak kojotak changed the title Add preSelectedCards from commonCards instead of CardRelationMatrixGenerator.cardPool Fixed duplicates in commander generated decks Mar 16, 2026
@Hanmac Hanmac requested review from Agetian and tehdiplomat March 16, 2026 12:12
@Hanmac Hanmac requested a review from tool4ever March 18, 2026 15:32
@Hanmac
Copy link
Contributor

Hanmac commented Mar 18, 2026

@Agetian might need to look into why it got the wrong CN?

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.

3 participants