forked from External/mage
GUI: fixed wrong card sides, data and errors for transform and double side cards;
This commit is contained in:
parent
3515647c7b
commit
3284cb5b24
10 changed files with 72 additions and 69 deletions
|
|
@ -26,7 +26,7 @@ public class PermanentView extends CardView {
|
|||
private final boolean summoningSickness;
|
||||
private final int damage;
|
||||
private List<UUID> attachments;
|
||||
private final CardView original;
|
||||
private final CardView original; // original card before transforms and modifications
|
||||
private final boolean copy;
|
||||
private final String nameOwner; // only filled if != controller
|
||||
private final boolean controlled;
|
||||
|
|
@ -52,14 +52,14 @@ public class PermanentView extends CardView {
|
|||
}
|
||||
this.attachedTo = permanent.getAttachedTo();
|
||||
if (isToken()) {
|
||||
original = new CardView(((PermanentToken) permanent).getToken(), game);
|
||||
original = new CardView(((PermanentToken) permanent).getToken().copy(), (Game) null);
|
||||
original.expansionSetCode = permanent.getExpansionSetCode();
|
||||
tokenSetCode = original.getTokenSetCode();
|
||||
tokenDescriptor = original.getTokenDescriptor();
|
||||
} else {
|
||||
if (card != null) {
|
||||
// original may not be face down
|
||||
original = new CardView(card, game);
|
||||
original = new CardView(card.copy(), (Game) null);
|
||||
} else {
|
||||
original = null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue