mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Flesh out planes some more
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user