mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Fixed AI attacking with a single Hero of Bladehold twice.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user