mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
Temporary fix to Index out of Range Exception in doAssault()
This commit is contained in:
@@ -334,7 +334,7 @@ public class ComputerUtilAttack {
|
|||||||
|
|
||||||
CardList remainingAttackers = new CardList(attackers.toArray());
|
CardList remainingAttackers = new CardList(attackers.toArray());
|
||||||
// presumes the Human will block
|
// 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));
|
remainingAttackers.remove(attackers.get(i));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user