Token refactor

This commit is contained in:
spjspj 2017-05-06 23:35:14 +10:00
parent a532368b84
commit e73e7d8600
20 changed files with 1449 additions and 744 deletions

View file

@ -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) {