mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +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:
@@ -2931,6 +2931,15 @@ public class CardFactoryUtil {
|
||||
}
|
||||
}
|
||||
|
||||
// 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()) {
|
||||
return CardFactoryUtil.doXMath(Integer.parseInt(sq[1]), m, c);
|
||||
|
||||
@@ -385,6 +385,10 @@ public class StaticAbility {
|
||||
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