From 650e8605a28e270fbfbc660844d0c6787152076b Mon Sep 17 00:00:00 2001 From: Sol Date: Sat, 5 Nov 2011 20:57:15 +0000 Subject: [PATCH] Temporary fix to Index out of Range Exception in doAssault() --- src/main/java/forge/ComputerUtilAttack.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/forge/ComputerUtilAttack.java b/src/main/java/forge/ComputerUtilAttack.java index 785ecc732b4..a880bd43a15 100644 --- a/src/main/java/forge/ComputerUtilAttack.java +++ b/src/main/java/forge/ComputerUtilAttack.java @@ -334,7 +334,7 @@ public class ComputerUtilAttack { CardList remainingAttackers = new CardList(attackers.toArray()); // presumes the Human will block - for (int i = 0; i < blockers.size(); i++) { + for (int i = 0; i < blockers.size() && i < attackers.size(); i++) { remainingAttackers.remove(attackers.get(i)); }