- The AI will now also draft colorless cards.

This commit is contained in:
Sloth
2011-12-06 16:03:38 +00:00
parent 8627c3fbcb
commit 1bf66d12bb

View File

@@ -207,6 +207,9 @@ public class CardList implements Iterable<Card> {
final CardListFilter clrF = new CardListFilter() {
@Override
public boolean addCard(final Card c) {
if (c.isColorless()) {
return true;
}
final ArrayList<CardColor> cClrs = c.getColor();
for (int i = 0; i < cClrs.size(); i++) {
if (!cClrs.get(i).toStringArray().get(0).equals(clr1)