From 5fc1d4214b5c169af9661061e84f84dd9c60ab0c Mon Sep 17 00:00:00 2001 From: tool4ever Date: Mon, 27 Oct 2025 18:03:15 +0100 Subject: [PATCH] Restore check to treat empty room as dynamic state (#9009) --- forge-game/src/main/java/forge/game/card/Card.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/forge-game/src/main/java/forge/game/card/Card.java b/forge-game/src/main/java/forge/game/card/Card.java index 9f8bd28db45..9fd05a88e70 100644 --- a/forge-game/src/main/java/forge/game/card/Card.java +++ b/forge-game/src/main/java/forge/game/card/Card.java @@ -557,18 +557,16 @@ public class Card extends GameEntity implements Comparable, IHasSVars, ITr boolean needsTransformAnimation = transform || rollback; // faceDown has higher priority over clone states // while text change states doesn't apply while the card is faceDown - if (state != CardStateName.FaceDown) { + if (state != CardStateName.FaceDown && state != CardStateName.EmptyRoom) { CardCloneStates cloneStates = getLastClonedState(); if (cloneStates != null) { if (!cloneStates.containsKey(state)) { throw new RuntimeException(getName() + " tried to switch to non-existant cloned state \"" + state + "\"!"); //return false; // Nonexistant state. } - } else { - if (!states.containsKey(state)) { - System.out.println(getName() + " tried to switch to non-existant state \"" + state + "\"!"); - return false; // Nonexistant state. - } + } else if (!states.containsKey(state)) { + System.out.println(getName() + " tried to switch to non-existant state \"" + state + "\"!"); + return false; // Nonexistant state. } }