mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Committed a previously missing predicate.
This commit is contained in:
@@ -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.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user