mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Added Phyrexian Grimoire, Purging Scythe, and Noxious Vapors
This commit is contained in:
@@ -6574,8 +6574,20 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
} else if (property.startsWith("TopGraveyard")) {
|
||||
final List<Card> list = new ArrayList<Card>(this.getOwner().getCardsIn(ZoneType.Graveyard));
|
||||
Collections.reverse(list);
|
||||
if (list.isEmpty() || !this.equals(list.get(0))) {
|
||||
return false;
|
||||
if (property.substring(12).matches("[0-9][0-9]?")) {
|
||||
int n = Integer.parseInt(property.substring(12));
|
||||
int num = Math.min(n, list.size());
|
||||
final List<Card> newlist = new ArrayList<Card>();
|
||||
for (int i = 0; i < num; i++) {
|
||||
newlist.add(list.get(i));
|
||||
}
|
||||
if (list.isEmpty() || !newlist.contains(this)) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
if (list.isEmpty() || !this.equals(list.get(0))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else if (property.startsWith("BottomGraveyard")) {
|
||||
final List<Card> list = this.getOwner().getCardsIn(ZoneType.Graveyard);
|
||||
@@ -6999,6 +7011,13 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else if (property.startsWith("leastToughness")) {
|
||||
final List<Card> list = CardLists.filter(Singletons.getModel().getGame().getCardsIn(ZoneType.Battlefield), Presets.CREATURES);
|
||||
for (final Card crd : list) {
|
||||
if (crd.getNetDefense() < this.getNetDefense()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else if (property.startsWith("greatestCMC")) {
|
||||
final List<Card> list = CardLists.filter(Singletons.getModel().getGame().getCardsIn(ZoneType.Battlefield), Presets.CREATURES);
|
||||
for (final Card crd : list) {
|
||||
|
||||
Reference in New Issue
Block a user