From cb3cc70b8d121af867e06ba45cc308b5f5dce601 Mon Sep 17 00:00:00 2001 From: Sloth Date: Thu, 28 Jun 2012 06:31:58 +0000 Subject: [PATCH] - Improved AI handling of Goblin Elite Infantry. --- src/main/java/forge/game/phase/CombatUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/forge/game/phase/CombatUtil.java b/src/main/java/forge/game/phase/CombatUtil.java index c973d51df73..1b0ce91fcb3 100644 --- a/src/main/java/forge/game/phase/CombatUtil.java +++ b/src/main/java/forge/game/phase/CombatUtil.java @@ -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));