* 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,9 +429,11 @@ public class CardView extends SimpleCardView {
this.cardIcons.add(FaceDownCardIcon.instance); this.cardIcons.add(FaceDownCardIcon.instance);
} }
// commander // commander
Player owner = game.getPlayer(game.getOwnerId(permanent)); if (game != null) {
if (owner != null && game.isCommanderObject(owner, permanent)) { Player owner = game.getPlayer(game.getOwnerId(permanent));
this.cardIcons.add(CommanderCardIcon.instance); if (owner != null && game.isCommanderObject(owner, permanent)) {
this.cardIcons.add(CommanderCardIcon.instance);
}
} }
} else { } else {
if (card.isCopy()) { if (card.isCopy()) {