mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +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 (sq[0].contains("Threshold")) {
|
||||||
if (cardController.hasThreshold()) {
|
if (cardController.hasThreshold()) {
|
||||||
return CardFactoryUtil.doXMath(Integer.parseInt(sq[1]), m, c);
|
return CardFactoryUtil.doXMath(Integer.parseInt(sq[1]), m, c);
|
||||||
|
|||||||
@@ -385,6 +385,10 @@ public class StaticAbility {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.mapParams.containsKey("FatefulHour") && controller.getLife() > 5) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (this.mapParams.containsKey("Threshold") && !controller.hasThreshold()) {
|
if (this.mapParams.containsKey("Threshold") && !controller.hasThreshold()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user