mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48: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("+")) {
|
if (att.startsWith("+")) {
|
||||||
att = att.substring(1);
|
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);
|
power += Integer.parseInt(att);
|
||||||
} else {
|
} else {
|
||||||
String bonus = new String(source.getSVar(att));
|
String bonus = new String(source.getSVar(att));
|
||||||
@@ -1894,7 +1894,7 @@ public class CombatUtil {
|
|||||||
if (def.startsWith("+")) {
|
if (def.startsWith("+")) {
|
||||||
def = def.substring(1);
|
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);
|
toughness += Integer.parseInt(def);
|
||||||
} else {
|
} else {
|
||||||
String bonus = new String(source.getSVar(def));
|
String bonus = new String(source.getSVar(def));
|
||||||
|
|||||||
Reference in New Issue
Block a user