mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -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.manifested = permanent.isManifested();
|
||||
this.damage = permanent.getDamage();
|
||||
if (!permanent.getAttachments().isEmpty()) {
|
||||
attachments = new ArrayList<>();
|
||||
attachments.addAll(permanent.getAttachments());
|
||||
}
|
||||
this.attachments = new ArrayList<>(permanent.getAttachments());
|
||||
this.attachedTo = permanent.getAttachedTo();
|
||||
|
||||
// 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.summoningSickness = permanentView.summoningSickness;
|
||||
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());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue