simplify saga ability constructors

This commit is contained in:
theelk801 2023-05-02 18:45:17 -04:00
parent effc3683da
commit d2b808074d
6 changed files with 8 additions and 20 deletions

View file

@ -46,7 +46,7 @@ public final class TheArgentEtchings extends CardImpl {
this.nightCard = true;
// (As this Saga enters and after your draw step, add a lore counter.)
SagaAbility sagaAbility = new SagaAbility(this, false);
SagaAbility sagaAbility = new SagaAbility(this);
// I -- Incubate 2 five times, then transform all Incubator tokens you control.
sagaAbility.addChapterEffect(this, SagaChapter.CHAPTER_I, new TheArgentEtchingsEffect());

View file

@ -37,7 +37,7 @@ public final class TheGrandEvolution extends CardImpl {
this.nightCard = true;
// (As this Saga enters and after your draw step, add a lore counter. Sacrifice after III.)
SagaAbility sagaAbility = new SagaAbility(this, false);
SagaAbility sagaAbility = new SagaAbility(this);
// I -- Mill ten cards. Put up to two creature cards from among the milled cards onto the battlefield.
sagaAbility.addChapterEffect(this, SagaChapter.CHAPTER_I, new TheGrandEvolutionEffect());

View file

@ -36,7 +36,7 @@ public class TheGreatSynthesis extends CardImpl {
this.nightCard = true;
//(As this Saga enters and after your draw step, add a lore counter.)
SagaAbility sagaAbility = new SagaAbility(this, false);
SagaAbility sagaAbility = new SagaAbility(this);
//I Draw cards equal to the number of cards in your hand. You have no maximum hand size for as long as you
//control The Great Synthesis.

View file

@ -36,7 +36,7 @@ public final class TheGreatWork extends CardImpl {
this.nightCard = true;
// (As this Saga enters and after your draw step, add a lore counter.)
SagaAbility sagaAbility = new SagaAbility(this, false);
SagaAbility sagaAbility = new SagaAbility(this);
// I -- The Great Work deals 3 damage to target opponent and each creature they control.
sagaAbility.addChapterEffect(

View file

@ -41,7 +41,7 @@ public final class TheTrueScriptures extends CardImpl {
this.nightCard = true;
// (As this Saga enters and after your draw step, add a lore counter.)
SagaAbility sagaAbility = new SagaAbility(this, false);
SagaAbility sagaAbility = new SagaAbility(this);
// I -- For each opponent, destroy up to one target creature or planeswalker that player controls.
sagaAbility.addChapterEffect(

View file

@ -33,29 +33,17 @@ public class SagaAbility extends SimpleStaticAbility {
private final boolean readAhead;
public SagaAbility(Card card) {
this(card, SagaChapter.CHAPTER_III);
}
public SagaAbility(Card card, boolean showSacText) {
this(card, showSacText, SagaChapter.CHAPTER_III);
this(card, SagaChapter.CHAPTER_III, false);
}
public SagaAbility(Card card, SagaChapter maxChapter) {
this(card, card.getSecondCardFace() == null, maxChapter);
}
public SagaAbility(Card card, boolean showSacText, SagaChapter maxChapter) {
this(card, maxChapter, false, showSacText);
this(card, maxChapter, false);
}
public SagaAbility(Card card, SagaChapter maxChapter, boolean readAhead) {
this(card, maxChapter, readAhead, card.getSecondCardFace() == null);
}
public SagaAbility(Card card, SagaChapter maxChapter, boolean readAhead, boolean showSacText) {
super(Zone.ALL, null);
this.maxChapter = maxChapter;
this.showSacText = showSacText;
this.showSacText = card.getSecondCardFace() == null && !card.isNightCard();
this.readAhead = readAhead;
this.setRuleVisible(true);
this.setRuleAtTheTop(true);