forked from External/mage
[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:
parent
2dbd313956
commit
8fbc7c9507
12 changed files with 447 additions and 2 deletions
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue