LKI: fix wrong state on stack (#3843)

* fix wrong state on stack

* fix typo
This commit is contained in:
tool4ever
2023-10-02 11:14:48 +02:00
committed by GitHub
parent e93b74c26a
commit 021bd2c16b
3 changed files with 3 additions and 3 deletions

View File

@@ -229,7 +229,7 @@ public final class CardUtil {
if (in.isTransformed()) {
newCopy.incrementTransformedTimestamp();
}
newCopy.setState(newCopy.getFaceupCardStateName(), false, true);
newCopy.setState(in.getCurrentStateName(), false, true);
if (in.isFaceDown()) {
newCopy.turnFaceDownNoUpdate();
newCopy.setType(new CardType(in.getFaceDownState().getType()));