mirror of
https://github.com/correl/mage.git
synced 2024-12-01 03:00:09 +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,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;
|
||||||
|
|
Loading…
Reference in a new issue