mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
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:
@@ -505,7 +505,7 @@ public class LimitedDeckBuilder extends DeckGeneratorBase {
|
|||||||
|
|
||||||
hasColor = Predicates.or(new DeckGeneratorBase.MatchColorIdentity(colors),
|
hasColor = Predicates.or(new DeckGeneratorBase.MatchColorIdentity(colors),
|
||||||
DeckGeneratorBase.COLORLESS_CARDS);
|
DeckGeneratorBase.COLORLESS_CARDS);
|
||||||
final Iterable<PaperCard> threeColorList = Iterables.filter(aiPlayables,
|
final Iterable<PaperCard> threeColorList = Iterables.filter(rankedOthers,
|
||||||
Predicates.compose(hasColor, PaperCard.FN_GET_RULES));
|
Predicates.compose(hasColor, PaperCard.FN_GET_RULES));
|
||||||
for (final PaperCard card : threeColorList) {
|
for (final PaperCard card : threeColorList) {
|
||||||
if (num > 0) {
|
if (num > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user