- JOU: Added Battlefield Thaumaturge and Crystalline Nautilus

This commit is contained in:
swordshine
2014-04-16 06:33:56 +00:00
parent c06522480a
commit d1deb9aef8

View File

@@ -393,14 +393,8 @@ public class ManaCostAdjustment {
if (params.containsKey("AffectedZone") && !card.isInZone(ZoneType.smartValueOf(params.get("AffectedZone")))) { if (params.containsKey("AffectedZone") && !card.isInZone(ZoneType.smartValueOf(params.get("AffectedZone")))) {
return; return;
} }
int value = 0; // CardFactory.xCout() cannot calculate cards like Battlefield Thaumaturge
if ("X".equals(amount)) { int value = AbilityUtils.calculateAmount(hostCard, amount, sa);
value = CardFactoryUtil.xCount(hostCard, hostCard.getSVar("X"));
} else if ("AffectedX".equals(amount)) {
value = CardFactoryUtil.xCount(card, hostCard.getSVar("AffectedX"));
} else {
value = Integer.valueOf(amount);
}
if (!params.containsKey("Color")) { if (!params.containsKey("Color")) {
manaCost.decreaseColorlessMana(value); manaCost.decreaseColorlessMana(value);