- Committed a previously missing predicate.

This commit is contained in:
Agetian
2017-01-30 13:37:11 +00:00
parent 5af05acf71
commit c12d530b65

View File

@@ -491,6 +491,15 @@ public final class CardPredicates {
return c.isLand(); return c.isLand();
} }
}; };
/**
* a Predicate<Card> to get all mana-producing lands.
*/
public static final Predicate<Card> LANDS_PRODUCING_MANA = new Predicate<Card>() {
@Override
public boolean apply(Card c) {
return c.isLand() && !c.getManaAbilities().isEmpty();
}
};
/** /**
* a Predicate<Card> to get all permanents. * a Predicate<Card> to get all permanents.
*/ */