- Added Ruric Thar, the Unbowed. Little fix.

This commit is contained in:
jeffwadsworth 2013-05-01 11:15:53 -05:00
parent 111f198f3d
commit 4feb0638bd
2 changed files with 126 additions and 2 deletions

View file

@ -1102,8 +1102,7 @@ public class ComputerPlayer6 extends ComputerPlayer<ComputerPlayer6> implements
for (Permanent blocker : possibleBlockers) {
int blockerValue = eval.evaluate(blocker, game);
if (attacker.getPower().getValue() <= blocker.getToughness().getValue()
&& attacker.getToughness().getValue() <= blocker.getPower().getValue()
&& attacker.getPower().getValue() == 0) {
&& attacker.getToughness().getValue() <= blocker.getPower().getValue()) {
safeToAttack = false;
}
@ -1126,6 +1125,9 @@ public class ComputerPlayer6 extends ComputerPlayer<ComputerPlayer6> implements
|| attacker.getAbilities().contains(new IndestructibleAbility())) {
safeToAttack = true;
}
if (attacker.getPower().getValue() == 0) {
safeToAttack = false;
}
if (safeToAttack) {
attackingPlayer.declareAttacker(attacker.getId(), defenderId, game);
}