mirror of
https://github.com/correl/mage.git
synced 2024-11-28 19:19:55 +00:00
* GUI: fixed that Card Viewer can't open tokens list;
This commit is contained in:
parent
f827924b8c
commit
88484f5a1e
1 changed files with 5 additions and 3 deletions
|
@ -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()) {
|
||||||
|
|
Loading…
Reference in a new issue