mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
*Added Fateful Hour to Count$ (Count$FatefulHour.<Truevalue>.<Falsevalue>) and as a condition to Static Abilities (FatefulHour$ True).
This commit is contained in:
@@ -2930,6 +2930,15 @@ public class CardFactoryUtil {
|
||||
return CardFactoryUtil.doXMath(Integer.parseInt(sq[2]), m, c);
|
||||
}
|
||||
}
|
||||
|
||||
// Count$FatefulHour.<numFH>.numNotFH>
|
||||
if (sq[0].contains("FatefulHour")) {
|
||||
if (cardController.getLife() <= 5) {
|
||||
return CardFactoryUtil.doXMath(Integer.parseInt(sq[1]), m, c);
|
||||
} else {
|
||||
return CardFactoryUtil.doXMath(Integer.parseInt(sq[2]), m, c);
|
||||
}
|
||||
}
|
||||
|
||||
if (sq[0].contains("Threshold")) {
|
||||
if (cardController.hasThreshold()) {
|
||||
|
||||
@@ -384,6 +384,10 @@ public class StaticAbility {
|
||||
if ((effectZone != null) && (!this.hostCard.isInZone(effectZone) || this.hostCard.isPhasedOut())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (this.mapParams.containsKey("FatefulHour") && controller.getLife() > 5) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (this.mapParams.containsKey("Threshold") && !controller.hasThreshold()) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user