From 9ab9682b9e5dc88256ff78ad7ec3a913f978dccd Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 18:59:47 +0000 Subject: [PATCH] Fixed bug related to attacker and defender evaluations --- src/forge/ComputerUtil_Attack2.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/forge/ComputerUtil_Attack2.java b/src/forge/ComputerUtil_Attack2.java index 838bc246b22..824d12d3441 100644 --- a/src/forge/ComputerUtil_Attack2.java +++ b/src/forge/ComputerUtil_Attack2.java @@ -506,7 +506,7 @@ public class ComputerUtil_Attack2 { canBeKilledByOne = true; // there is a single creature on the battlefield that can kill the creature killingBlockers.add(defender); // see if the defending creature is of higher or lower value. We don't want to attack only to lose value - if(CardFactoryUtil.evaluateCreature(defender) < CardFactoryUtil.evaluateCreature(attacker)){ + if(CardFactoryUtil.evaluateCreature(defender) <= CardFactoryUtil.evaluateCreature(attacker)){ isWorthLessThanAllKillers = false; } } @@ -525,7 +525,7 @@ public class ComputerUtil_Attack2 { } // if the creature cannot block and can kill all opponents they might as well attack, they do nothing staying back - if(canKillAllDangerous && !CombatUtil.canBlock(attacker) && !isWorthLessThanAllKillers){ + if(canKillAllDangerous && !CombatUtil.canBlock(attacker) && isWorthLessThanAllKillers){ System.out.println(attacker.getName() + " = attacking because they can't block, expecting to kill or damage player"); return true; }