From 0e36e6b6d9b7f7f35f9c86a44bebc713f2a6f9f5 Mon Sep 17 00:00:00 2001 From: tool4ever Date: Wed, 29 Jan 2025 09:46:57 +0100 Subject: [PATCH] Fix room fully unlocked when turned up from manifest (#6921) --- forge-game/src/main/java/forge/game/card/Card.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 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 60410e6f4e3..681782e39ba 100644 --- a/forge-game/src/main/java/forge/game/card/Card.java +++ b/forge-game/src/main/java/forge/game/card/Card.java @@ -844,6 +844,7 @@ public class Card extends GameEntity implements Comparable, IHasSVars, ITr // 613.7f A permanent receives a new timestamp each time it turns face up or face down. c.setLayerTimestamp(ts); c.turnedFaceUpThisTurn = true; + c.updateRooms(); c.updateStateForView(); //fixes cards with backside viewable // need to run faceup commands, currently // it does cleanup the modified facedown state @@ -8217,10 +8218,13 @@ public class Card extends GameEntity implements Comparable, IHasSVars, ITr } public void updateRooms() { - if (!this.isRoom()) { + if (!isRoom()) { return; } - if (this.isFaceDown()) { + if (!isInPlay()) { + return; + } + if (isFaceDown()) { return; } if (unlockedRooms.isEmpty()) {