Fixed Issue 350.

This commit is contained in:
magenoxx 2011-11-16 18:56:23 +04:00
parent f4e889329d
commit 8b67158fdb
3 changed files with 10 additions and 1 deletions

View file

@ -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

View file

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