- Added puzzle PS_GRN7.

- Fixed effect cards lingering in the command zone across Setup Game State calls from the dev mode menu.
This commit is contained in:
Agetian
2018-11-20 08:15:23 +03:00
parent 8b566c0bbb
commit a5aa83837d
2 changed files with 19 additions and 0 deletions

View File

@@ -1004,6 +1004,12 @@ public abstract class GameState {
private void setupPlayerState(int life, Map<ZoneType, String> cardTexts, final Player p, final int landsPlayed, final int landsPlayedLastTurn) {
// Lock check static as we setup player state
// Clear all zones first, this ensures that any lingering cards and effects (e.g. in command zone) get cleared up
// before setting up a new state
for (ZoneType zt : ZONES.keySet()) {
p.getZone(zt).removeAllCards(true);
}
Map<ZoneType, CardCollectionView> playerCards = new EnumMap<ZoneType, CardCollectionView>(ZoneType.class);
for (Entry<ZoneType, String> kv : cardTexts.entrySet()) {
String value = kv.getValue();