tests: render dialog - fixed not working tap/untap on double clicks

This commit is contained in:
Oleg Agafonov 2023-11-22 00:25:41 +04:00
parent 55ac6898e1
commit cb53ca4382

View file

@ -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());