mirror of
https://github.com/correl/mage.git
synced 2025-01-11 11:05:23 +00:00
Fixed Issue 350.
This commit is contained in:
parent
f4e889329d
commit
8b67158fdb
3 changed files with 10 additions and 1 deletions
|
@ -73,6 +73,11 @@ public class SimulatedPlayer2 extends ComputerPlayer<SimulatedPlayer2> {
|
|||
public SimulatedPlayer2(final SimulatedPlayer2 player) {
|
||||
super(player);
|
||||
this.isSimulatedPlayer = player.isSimulatedPlayer;
|
||||
this.suggested = new ArrayList<String>();
|
||||
for (String s : player.suggested) {
|
||||
this.suggested.add(s);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Binary file not shown.
|
@ -123,7 +123,11 @@ public abstract class GameImpl<T extends GameImpl<T>> implements Game, Serializa
|
|||
this.range = game.range;
|
||||
this.attackOption = game.attackOption;
|
||||
this.state = game.state.copy();
|
||||
this.gameCards = game.gameCards;
|
||||
// Issue 350
|
||||
//this.gameCards = game.gameCards;
|
||||
for (Map.Entry<UUID, Card> entry: game.gameCards.entrySet()) {
|
||||
this.gameCards.put(entry.getKey(), entry.getValue().copy());
|
||||
}
|
||||
this.simulation = game.simulation;
|
||||
this.gameOptions = game.gameOptions;
|
||||
this.lki.putAll(game.lki);
|
||||
|
|
Loading…
Reference in a new issue