forked from External/mage
Token refactor
This commit is contained in:
parent
a532368b84
commit
e73e7d8600
20 changed files with 1449 additions and 744 deletions
|
|
@ -79,7 +79,7 @@ public abstract class CardPanel extends MagePermanent implements MouseListener,
|
|||
protected UUID gameId;
|
||||
private TransferData data = new TransferData();
|
||||
|
||||
private final boolean isPermanent;
|
||||
private boolean isPermanent;
|
||||
private boolean hasSickness;
|
||||
private String zone;
|
||||
|
||||
|
|
@ -102,7 +102,7 @@ public abstract class CardPanel extends MagePermanent implements MouseListener,
|
|||
this.gameId = gameId;
|
||||
|
||||
// Gather info about the card
|
||||
this.isPermanent = this.gameCard instanceof PermanentView;
|
||||
this.isPermanent = this.gameCard instanceof PermanentView && !this.gameCard.inViewerOnly();
|
||||
if (isPermanent) {
|
||||
this.hasSickness = ((PermanentView) this.gameCard).hasSummoningSickness();
|
||||
}
|
||||
|
|
@ -202,6 +202,10 @@ public abstract class CardPanel extends MagePermanent implements MouseListener,
|
|||
updateArtImage();
|
||||
}
|
||||
}
|
||||
|
||||
public void setIsPermanent(boolean isPermanent) {
|
||||
this.isPermanent = isPermanent;
|
||||
}
|
||||
|
||||
public void cleanUp() {
|
||||
if (dayNightButton != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue