- Fixed a bug that enabled the AI to block a creature with "CARDNAME can't be blocked except by two or more creatures." and trample with a single blocker.

This commit is contained in:
Sloth
2011-12-22 21:55:38 +00:00
parent 913b019c7a
commit d228bdc8c2
2 changed files with 6 additions and 1 deletions

View File

@@ -350,7 +350,6 @@ public class CombatUtil {
}
}
}
return false;
}

View File

@@ -589,6 +589,12 @@ public class ComputerUtilBlock {
// "Whenever CARDNAME becomes blocked, it gets +1/+1 until end of turn for each creature blocking it."
for (final Card attacker : tramplingAttackers) {
if (attacker.hasKeyword("CARDNAME can't be blocked except by two or more creatures.")
&& !combat.isBlocked(attacker)) {
continue;
}
chumpBlockers = ComputerUtilBlock
.getPossibleBlockers(attacker, ComputerUtilBlock.getBlockersLeft(), combat);
for (final Card blocker : chumpBlockers) {