gui: fix Saga DFC rendering (#12134)

This commit is contained in:
Matthew Wilson 2024-04-18 03:25:15 +03:00 committed by GitHub
parent 006f212b6b
commit b76a3ba889
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -486,6 +486,9 @@ public class CardView extends SimpleCardView {
if (!permanent.getControllerId().equals(permanent.getOwnerId())) { if (!permanent.getControllerId().equals(permanent.getOwnerId())) {
controlledByOwner = false; controlledByOwner = false;
} }
if (permanent.isTransformed()) {
transformed = true;
}
} }
} else { } else {
if (card.isCopy()) { if (card.isCopy()) {
@ -631,10 +634,10 @@ public class CardView extends SimpleCardView {
} }
// Cases, classes and sagas have portrait art // Cases, classes and sagas have portrait art
if (card.getSubtype().contains(SubType.CASE) || if (card.getSubtype(game).contains(SubType.CASE) ||
card.getSubtype().contains(SubType.CLASS)) { card.getSubtype(game).contains(SubType.CLASS)) {
artRect = ArtRect.FULL_LENGTH_LEFT; artRect = ArtRect.FULL_LENGTH_LEFT;
} else if (card.getSubtype().contains(SubType.SAGA)) { } else if (card.getSubtype(game).contains(SubType.SAGA)) {
artRect = ArtRect.FULL_LENGTH_RIGHT; artRect = ArtRect.FULL_LENGTH_RIGHT;
} }