- Fixed AI attacking with a single Hero of Bladehold twice.

This commit is contained in:
Sloth
2013-07-01 16:25:13 +00:00
parent 368e3c36b9
commit 4d7749e265

View File

@@ -108,6 +108,7 @@ public class AiAttackController {
for (final Trigger trigger : attacker.getTriggers()) {
if (trigger.getMode() == TriggerType.Attacks) {
list.add(attacker);
break;
}
}
}
@@ -779,6 +780,9 @@ public class AiAttackController {
attackersLeft = this.notNeededAsBlockers(ai, attackersLeft);
attackersLeft = this.sortAttackers(attackersLeft);
if ( LOG_AI_ATTACKS )
System.out.println("attackersLeft = " + attackersLeft);
for (int i = 0; i < attackersLeft.size(); i++) {
final Card attacker = attackersLeft.get(i);
if (this.aiAggression < 5 && !attacker.hasFirstStrike() && !attacker.hasDoubleStrike()