mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Fixed NullFormatException with ComputerUtilCard.applyStaticContPT()
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user