mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- The AI will now also draft colorless cards.
This commit is contained in:
@@ -207,6 +207,9 @@ public class CardList implements Iterable<Card> {
|
|||||||
final CardListFilter clrF = new CardListFilter() {
|
final CardListFilter clrF = new CardListFilter() {
|
||||||
@Override
|
@Override
|
||||||
public boolean addCard(final Card c) {
|
public boolean addCard(final Card c) {
|
||||||
|
if (c.isColorless()) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
final ArrayList<CardColor> cClrs = c.getColor();
|
final ArrayList<CardColor> cClrs = c.getColor();
|
||||||
for (int i = 0; i < cClrs.size(); i++) {
|
for (int i = 0; i < cClrs.size(); i++) {
|
||||||
if (!cClrs.get(i).toStringArray().get(0).equals(clr1)
|
if (!cClrs.get(i).toStringArray().get(0).equals(clr1)
|
||||||
|
|||||||
Reference in New Issue
Block a user