Flesh out planes some more

This commit is contained in:
drdev
2014-11-21 20:17:03 +00:00
parent 2bb3951f40
commit 50da0900d1
3 changed files with 67 additions and 36 deletions

View File

@@ -310,11 +310,11 @@ public final class CardRulesPredicates {
return new LeafColor(LeafColor.ColorOperator.CountColorsGreaterOrEqual, cntColors);
}
public static Predicate<CardRules> hasColorIdentity(final byte colors) {
public static Predicate<CardRules> hasColorIdentity(final int colormask) {
return new Predicate<CardRules>() {
@Override
public boolean apply(CardRules rules) {
return rules.getColorIdentity().hasAllColors(colors);
return rules.getColorIdentity().hasNoColorsExcept(colormask);
}
};
}