mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
added Morbid to GameActionUtil.specialConditionsMet to support etbCounter
This commit is contained in:
@@ -1734,6 +1734,14 @@ public final class GameActionUtil {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (specialConditions.contains("Morbid")) {
|
||||||
|
CardList res = CardUtil.getThisTurnEntered(Zone.Graveyard, Zone.Battlefield, "Creature", sourceCard);
|
||||||
|
if (res.size() < 1) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (specialConditions.contains("isPresent")) { // is a card of a certain type/color present?
|
if (specialConditions.contains("isPresent")) { // is a card of a certain type/color present?
|
||||||
String requirements = specialConditions.replaceAll("isPresent ", "");
|
String requirements = specialConditions.replaceAll("isPresent ", "");
|
||||||
CardList cardsinPlay = AllZoneUtil.getCardsIn(Zone.Battlefield);
|
CardList cardsinPlay = AllZoneUtil.getCardsIn(Zone.Battlefield);
|
||||||
|
|||||||
Reference in New Issue
Block a user