- Fixed NullFormatException with ComputerUtilCard.applyStaticContPT()

This commit is contained in:
excessum
2014-10-04 12:22:27 +00:00
parent 135a11fb3d
commit 2f49deed12

View File

@@ -1142,7 +1142,7 @@ public class ComputerUtilCard {
} else if (params.get("AddPower").equals("Y")) { } else if (params.get("AddPower").equals("Y")) {
att = CardFactoryUtil.xCount(c, c.getSVar("Y")); att = CardFactoryUtil.xCount(c, c.getSVar("Y"));
} else { } else {
att = Integer.valueOf(params.get("AddPower")); att = AbilityUtils.calculateAmount(vCard, params.get("AddPower"), stAb);
} }
vCard.addTempAttackBoost(att); vCard.addTempAttackBoost(att);
} }
@@ -1153,7 +1153,7 @@ public class ComputerUtilCard {
} else if (params.get("AddToughness").equals("Y")) { } else if (params.get("AddToughness").equals("Y")) {
def = CardFactoryUtil.xCount(c, c.getSVar("Y")); def = CardFactoryUtil.xCount(c, c.getSVar("Y"));
} else { } else {
def = Integer.valueOf(params.get("AddToughness")); def = AbilityUtils.calculateAmount(c, params.get("AddToughness"), stAb);
} }
vCard.addTempDefenseBoost(def); vCard.addTempDefenseBoost(def);
} }