- Added a little check to shouldCastLessThanMax.

This commit is contained in:
Sloth
2012-07-05 10:27:39 +00:00
parent 457559b821
commit 6c76d7117e

View File

@@ -2050,8 +2050,10 @@ public class ComputerUtil {
combat.initiatePossibleDefenders(AllZone.getComputerPlayer());
CardList attackers = AllZoneUtil.getCreaturesInPlay(AllZone.getHumanPlayer());
for (Card att : attackers) {
if (CombatUtil.canAttackNextTurn(att)) {
combat.addAttacker(att);
}
}
combat = ComputerUtilBlock.getBlockers(combat, AllZoneUtil.getCreaturesInPlay(AllZone.getComputerPlayer()));
if (!CombatUtil.lifeInDanger(combat)) {
// Otherwise, return false. Do not play now.