Fixed duplicates in commander generated decks#10000
Fixed duplicates in commander generated decks#10000kojotak wants to merge 2 commits intoCard-Forge:masterfrom
Conversation
|
@Agetian might need to look into why it got the wrong CN? |
|
Yeah, not sure why it doesn't return the proper CN :/ A deeper look into this might be needed but not sure who would be best suited for the job? |
|
I went a little bit deeper. |
|
Oh, hmm, I'll see if I can find an opportunity to regenerate that LDA file , along with the two other ones that desperately need updating. |
|
Shouldn't the |
|
It's a LDA model for building Commander decks based on training data, it should be regularly updated, ideally, but I'm not sure how and who did it before (I do know how the other LDA models were generated and I update those from time to time). The card information should be a separate thing, yes, and I don't understand why CN is inferred specifically from Commander.dat and not just from the card DB :/ |
Possible fix for #9985
I don't know why, but
Pir, Imaginative Rascalloaded fromCardRelationMatrixGenerator.cardPoolshas collectorNumnerN.A.. That is not the case if loading fromStaticData.instance().getCommonCards()(this returns 11 and 1050). TheN.A.collectorNumber results inequalsmethod returning false in an attempt to remove this card from the deck, causingPir, Imaginative Rascalbeeing duplicated (in main deck and as a commander partner).With this change, the card generated deck for
Toothy, Imaginary Friendcan be loaded: