mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Merge branch 'puzzle-engine' into 'master'
Added puzzle PS_GRN7 (Possibility Storm - Guilds of Ravnica 07). Fixed Setup Game State not clearing effect cards from command zone. See merge request core-developers/forge!1120
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user