mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +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")) {
|
||||
att = CardFactoryUtil.xCount(c, c.getSVar("Y"));
|
||||
} else {
|
||||
att = Integer.valueOf(params.get("AddPower"));
|
||||
att = AbilityUtils.calculateAmount(vCard, params.get("AddPower"), stAb);
|
||||
}
|
||||
vCard.addTempAttackBoost(att);
|
||||
}
|
||||
@@ -1153,7 +1153,7 @@ public class ComputerUtilCard {
|
||||
} else if (params.get("AddToughness").equals("Y")) {
|
||||
def = CardFactoryUtil.xCount(c, c.getSVar("Y"));
|
||||
} else {
|
||||
def = Integer.valueOf(params.get("AddToughness"));
|
||||
def = AbilityUtils.calculateAmount(c, params.get("AddToughness"), stAb);
|
||||
}
|
||||
vCard.addTempDefenseBoost(def);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user