mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
tests: render dialog - fixed not working tap/untap on double clicks
This commit is contained in:
parent
55ac6898e1
commit
cb53ca4382
1 changed files with 2 additions and 5 deletions
|
|
@ -49,10 +49,7 @@ public class PermanentView extends CardView {
|
||||||
this.morphed = permanent.isMorphed();
|
this.morphed = permanent.isMorphed();
|
||||||
this.manifested = permanent.isManifested();
|
this.manifested = permanent.isManifested();
|
||||||
this.damage = permanent.getDamage();
|
this.damage = permanent.getDamage();
|
||||||
if (!permanent.getAttachments().isEmpty()) {
|
this.attachments = new ArrayList<>(permanent.getAttachments());
|
||||||
attachments = new ArrayList<>();
|
|
||||||
attachments.addAll(permanent.getAttachments());
|
|
||||||
}
|
|
||||||
this.attachedTo = permanent.getAttachedTo();
|
this.attachedTo = permanent.getAttachedTo();
|
||||||
|
|
||||||
// show face down cards to all players at the game end
|
// show face down cards to all players at the game end
|
||||||
|
|
@ -150,7 +147,7 @@ public class PermanentView extends CardView {
|
||||||
this.phasedIn = permanentView.isPhasedIn();
|
this.phasedIn = permanentView.isPhasedIn();
|
||||||
this.summoningSickness = permanentView.summoningSickness;
|
this.summoningSickness = permanentView.summoningSickness;
|
||||||
this.damage = permanentView.damage;
|
this.damage = permanentView.damage;
|
||||||
this.attachments = permanentView.attachments.stream().collect(Collectors.toList());
|
this.attachments = new ArrayList<>(permanentView.attachments);
|
||||||
|
|
||||||
boolean showFaceDownInfo = controlled || (game != null && game.hasEnded());
|
boolean showFaceDownInfo = controlled || (game != null && game.hasEnded());
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue