- Fixed attachment IDs not cleared between game sessions created via applyGameOnThread, which caused attachments to be incorrectly positioned on cards in puzzle mode when running the puzzle for second and all subsequent times.

This commit is contained in:
Agetian
2017-07-02 13:21:28 +00:00
parent 08dd50d0a6
commit 25d885a96a

View File

@@ -316,6 +316,9 @@ public abstract class GameState {
final Player human = game.getPlayers().get(0);
final Player ai = game.getPlayers().get(1);
idToCard.clear();
cardToAttachId.clear();
Player newPlayerTurn = tChangePlayer.equals("human") ? human : tChangePlayer.equals("ai") ? ai : null;
PhaseType newPhase = tChangePhase.equals("none") ? null : PhaseType.smartValueOf(tChangePhase);