Temporary fix to Index out of Range Exception in doAssault()

This commit is contained in:
Sol
2011-11-05 20:57:15 +00:00
parent 9e623c9f47
commit 650e8605a2

View File

@@ -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));
}