* GUI: fixed that card viewer or deck editor doesn't show transform button for some cards (#8448);

This commit is contained in:
Oleg Agafonov 2021-11-14 00:33:37 +04:00
parent db29b009cd
commit 23bcc9dbb5
2 changed files with 2 additions and 2 deletions

View file

@ -866,7 +866,7 @@ public abstract class CardPanel extends MagePermanent implements ComponentListen
// alternative side -> main side // alternative side -> main side
copySelections(this.cardSideOther, this.cardSideMain); copySelections(this.cardSideOther, this.cardSideMain);
update(this.cardSideMain); update(this.cardSideMain);
this.getGameCard().setAlternateName(this.cardSideOther.getName()); // wtf null protect this.getGameCard().setAlternateName(this.cardSideOther.getName());
} }
updateArtImage(); updateArtImage();

View file

@ -179,6 +179,6 @@ public class MockCard extends CardImpl {
@Override @Override
public boolean isTransformable() { public boolean isTransformable() {
// must enable toggle mode in deck editor (switch between card sides); // must enable toggle mode in deck editor (switch between card sides);
return super.isTransformable() || this.isModalDoubleFacesCard; return super.isTransformable() || this.isModalDoubleFacesCard || this.secondSideCard != null;
} }
} }