mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
YMKM: roalesk_prime_specimen + support (#4903)
* roalesk_prime_specimen + support * allow added abilities to show on face-down cards
This commit is contained in:
@@ -103,6 +103,9 @@ public final class CardFacePredicates {
|
||||
if (!hasManaCost(input, manaCost)) {
|
||||
return false;
|
||||
}
|
||||
} else if (m.contains("cmcEQ")) {
|
||||
int i = Integer.parseInt(m.substring(5));
|
||||
if (!hasCMC(input, i)) return false;
|
||||
} else if (!hasProperty(input, m)) {
|
||||
return false;
|
||||
}
|
||||
@@ -122,6 +125,11 @@ public final class CardFacePredicates {
|
||||
return mC.equals(input.getManaCost().getShortString());
|
||||
}
|
||||
|
||||
static protected boolean hasCMC(ICardFace input, final int value) {
|
||||
ManaCost cost = input.getManaCost();
|
||||
return cost != null && cost.getCMC() == value;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static Predicate<ICardFace> valid(final String val) {
|
||||
|
||||
Reference in New Issue
Block a user