*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

@@ -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()) {

View File

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