mirror of
https://github.com/magefree/mage.git
synced 2026-01-23 19:59:54 -08:00
fixed ConcurrentUpdateException with multi-threaded ai
This commit is contained in:
parent
e05024351f
commit
23616432e4
9 changed files with 51 additions and 28 deletions
|
|
@ -227,7 +227,7 @@ public class SimulatedPlayer2 extends ComputerPlayer<SimulatedPlayer2> {
|
|||
// Start with X = {1}
|
||||
for (int i = 1; i < numAvailable; i++) {
|
||||
Ability newAbility = ability.copy();
|
||||
newAbility.addManaCost(new GenericManaCost(i));
|
||||
newAbility.getManaCostsToPay().add(new GenericManaCost(i));
|
||||
allActions.add(newAbility);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue