*Added Fateful Hour to Count$ (Count$FatefulHour.<Truevalue>.<Falsevalue>) and as a condition to Static Abilities (FatefulHour$ True).

This commit is contained in:
Hellfish
2012-01-09 08:54:49 +00:00
parent 07eb252835
commit 20a82797f0
2 changed files with 13 additions and 0 deletions

View File

@@ -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);

View File

@@ -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;
} }