[WHO] implemented Disguise ability (new face down type, ability and token image, #10653)

This commit is contained in:
Oleg Agafonov 2024-03-01 11:41:05 +04:00
parent ab787a2b8b
commit 9ea3356b77
16 changed files with 313 additions and 41 deletions

View file

@ -74,6 +74,7 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
protected boolean suspected;
protected boolean manifested = false;
protected boolean morphed = false;
protected boolean disguised = false;
protected boolean ringBearerFlag = false;
protected boolean canBeSacrificed = true;
protected int classLevel = 1;
@ -186,6 +187,7 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
this.protectorId = permanent.protectorId;
this.morphed = permanent.morphed;
this.disguised = permanent.disguised;
this.manifested = permanent.manifested;
this.createOrder = permanent.createOrder;
this.prototyped = permanent.prototyped;
@ -1908,6 +1910,16 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
morphed = value;
}
@Override
public boolean isDisguised() {
return disguised;
}
@Override
public void setDisguised(boolean value) {
disguised = value;
}
@Override
public void setRarity(Rarity rarity) {
this.rarity = rarity;