[OTJ] Implementing "saddle" mechanic (#12012)

* [OTJ] Implement Trained Arynx

* implement saddle cost

* update saddled effect

* add test

* add sorcery speed to saddle ability

* apply requested changes

* [OTJ] Implement Quilled Charger

* rework test
This commit is contained in:
Evan Kranzler 2024-03-29 23:00:22 -04:00 committed by GitHub
parent 2dbd313956
commit 8fbc7c9507
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 447 additions and 2 deletions

View file

@ -72,6 +72,7 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
protected boolean monstrous;
protected boolean renowned;
protected boolean suspected;
protected boolean saddled;
protected boolean manifested = false;
protected boolean morphed = false;
protected boolean disguised = false;
@ -175,6 +176,7 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
this.monstrous = permanent.monstrous;
this.renowned = permanent.renowned;
this.suspected = permanent.suspected;
this.saddled = permanent.saddled;
this.ringBearerFlag = permanent.ringBearerFlag;
this.classLevel = permanent.classLevel;
this.goadingPlayers.addAll(permanent.goadingPlayers);
@ -203,7 +205,7 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
+ ":" + getCardNumber()
+ ":" + getImageFileName()
+ ":" + getImageNumber();
return name
return name
+ ", " + (getBasicMageObject() instanceof Token ? "T" : "C")
+ ", " + getBasicMageObject().getClass().getSimpleName()
+ ", " + imageInfo
@ -237,6 +239,7 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
this.maxBlockedBy = 0;
this.copy = false;
this.goadingPlayers.clear();
this.saddled = false;
this.loyaltyActivationsAvailable = 1;
this.legendRuleApplies = true;
this.canBeSacrificed = true;
@ -1722,6 +1725,16 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
}
}
@Override
public boolean isSaddled() {
return saddled;
}
@Override
public void setSaddled(boolean saddled) {
this.saddled = saddled;
}
// Used as key for the ring bearer info.
private static final String ringbearerInfoKey = "IS_RINGBEARER";