forked from External/mage
simplify saga ability constructors
This commit is contained in:
parent
effc3683da
commit
d2b808074d
6 changed files with 8 additions and 20 deletions
|
|
@ -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());
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue