* GUI: fixed that Card Viewer can't open tokens list;

This commit is contained in:
Oleg Agafonov 2021-08-21 20:05:45 +04:00
parent f827924b8c
commit 88484f5a1e

View file

@ -429,10 +429,12 @@ public class CardView extends SimpleCardView {
this.cardIcons.add(FaceDownCardIcon.instance); this.cardIcons.add(FaceDownCardIcon.instance);
} }
// commander // commander
if (game != null) {
Player owner = game.getPlayer(game.getOwnerId(permanent)); Player owner = game.getPlayer(game.getOwnerId(permanent));
if (owner != null && game.isCommanderObject(owner, permanent)) { if (owner != null && game.isCommanderObject(owner, permanent)) {
this.cardIcons.add(CommanderCardIcon.instance); this.cardIcons.add(CommanderCardIcon.instance);
} }
}
} else { } else {
if (card.isCopy()) { if (card.isCopy()) {
this.mageObjectType = MageObjectType.COPY_CARD; this.mageObjectType = MageObjectType.COPY_CARD;