mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +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());
|
||||
// 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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user