implement [MKM] Cryptic Coat (#12164) and Cloak ability

This commit is contained in:
Susucre 2024-06-06 12:47:07 +02:00 committed by GitHub
parent 8172616449
commit ab280ad2ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 235 additions and 29 deletions

View file

@ -33,6 +33,7 @@ public class PermanentView extends CardView {
private final boolean morphed;
private final boolean disguised;
private final boolean manifested;
private final boolean cloaked;
private final boolean attachedToPermanent;
// If this card is attached to a permanent which is controlled by a player other than the one which controls this permanent
private final boolean attachedControllerDiffers;
@ -47,6 +48,7 @@ public class PermanentView extends CardView {
this.morphed = permanent.isMorphed();
this.disguised = permanent.isDisguised();
this.manifested = permanent.isManifested();
this.cloaked = permanent.isCloaked();
this.damage = permanent.getDamage();
this.attachments = new ArrayList<>(permanent.getAttachments());
this.attachedTo = permanent.getAttachedTo();
@ -143,6 +145,7 @@ public class PermanentView extends CardView {
this.morphed = permanentView.morphed;
this.disguised = permanentView.disguised;
this.manifested = permanentView.manifested;
this.cloaked = permanentView.cloaked;
this.attachedToPermanent = permanentView.attachedToPermanent;
this.attachedControllerDiffers = permanentView.attachedControllerDiffers;
}
@ -222,4 +225,8 @@ public class PermanentView extends CardView {
public boolean isManifested() {
return manifested;
}
public boolean isCloaked() {
return cloaked;
}
}