- Fixed a bug in getOnly2Colors.

This commit is contained in:
Sloth
2011-12-06 19:34:52 +00:00
parent 04bbb44fb4
commit 7b5207fbed

View File

@@ -212,9 +212,11 @@ public class CardList implements Iterable<Card> {
}
final ArrayList<CardColor> cClrs = c.getColor();
for (int i = 0; i < cClrs.size(); i++) {
if (!cClrs.get(i).toStringArray().get(0).equals(clr1)
&& !cClrs.get(i).toStringArray().get(0).equals(clr2)) {
return false;
CardColor cc = cClrs.get(i);
for (final String s : cc.toStringArray()) {
if (!s.equals(clr1) && !s.equals(clr2)) {
return false;
}
}
}
return true;