mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
Fix room fully unlocked when turned up from manifest (#6921)
This commit is contained in:
@@ -844,6 +844,7 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars, ITr
|
|||||||
// 613.7f A permanent receives a new timestamp each time it turns face up or face down.
|
// 613.7f A permanent receives a new timestamp each time it turns face up or face down.
|
||||||
c.setLayerTimestamp(ts);
|
c.setLayerTimestamp(ts);
|
||||||
c.turnedFaceUpThisTurn = true;
|
c.turnedFaceUpThisTurn = true;
|
||||||
|
c.updateRooms();
|
||||||
c.updateStateForView(); //fixes cards with backside viewable
|
c.updateStateForView(); //fixes cards with backside viewable
|
||||||
// need to run faceup commands, currently
|
// need to run faceup commands, currently
|
||||||
// it does cleanup the modified facedown state
|
// it does cleanup the modified facedown state
|
||||||
@@ -8217,10 +8218,13 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars, ITr
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void updateRooms() {
|
public void updateRooms() {
|
||||||
if (!this.isRoom()) {
|
if (!isRoom()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.isFaceDown()) {
|
if (!isInPlay()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (isFaceDown()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (unlockedRooms.isEmpty()) {
|
if (unlockedRooms.isEmpty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user