* 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);
}
// commander
Player owner = game.getPlayer(game.getOwnerId(permanent));
if (owner != null && game.isCommanderObject(owner, permanent)) {
this.cardIcons.add(CommanderCardIcon.instance);
if (game != null) {
Player owner = game.getPlayer(game.getOwnerId(permanent));
if (owner != null && game.isCommanderObject(owner, permanent)) {
this.cardIcons.add(CommanderCardIcon.instance);
}
}
} else {
if (card.isCopy()) {