Fix: AI splash best 3rd color card instead of random

AI sometimes needs to splash a 3rd color to fill their 23 playables (especially in sets with Multicolored cards). Previously, this would add cards based on the Pick order. Now it properly adds them based on the Ranking of the cards.
This commit is contained in:
Meerkov
2021-07-18 14:28:53 -07:00
parent 6505e5562f
commit 47917e4a3f

View File

@@ -505,7 +505,7 @@ public class LimitedDeckBuilder extends DeckGeneratorBase {
hasColor = Predicates.or(new DeckGeneratorBase.MatchColorIdentity(colors),
DeckGeneratorBase.COLORLESS_CARDS);
final Iterable<PaperCard> threeColorList = Iterables.filter(aiPlayables,
final Iterable<PaperCard> threeColorList = Iterables.filter(rankedOthers,
Predicates.compose(hasColor, PaperCard.FN_GET_RULES));
for (final PaperCard card : threeColorList) {
if (num > 0) {