mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Improved AI handling of Goblin Elite Infantry.
This commit is contained in:
@@ -1757,7 +1757,7 @@ public class CombatUtil {
|
||||
if (att.startsWith("+")) {
|
||||
att = att.substring(1);
|
||||
}
|
||||
if (att.matches("[0-9][0-9]?")) {
|
||||
if (att.matches("[0-9][0-9]?") || att.matches("-" + "[0-9][0-9]?")) {
|
||||
power += Integer.parseInt(att);
|
||||
} else {
|
||||
String bonus = new String(source.getSVar(att));
|
||||
@@ -1894,7 +1894,7 @@ public class CombatUtil {
|
||||
if (def.startsWith("+")) {
|
||||
def = def.substring(1);
|
||||
}
|
||||
if (def.matches("[0-9][0-9]?")) {
|
||||
if (def.matches("[0-9][0-9]?") || def.matches("-" + "[0-9][0-9]?")) {
|
||||
toughness += Integer.parseInt(def);
|
||||
} else {
|
||||
String bonus = new String(source.getSVar(def));
|
||||
|
||||
Reference in New Issue
Block a user