mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- 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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user