From 6d1c7595bf0fe44681a78f85c08c0d5e8e87b578 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 4 Feb 2022 20:52:00 -0500 Subject: [PATCH] small fix to saga text generation --- Mage/src/main/java/mage/abilities/common/SagaAbility.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Mage/src/main/java/mage/abilities/common/SagaAbility.java b/Mage/src/main/java/mage/abilities/common/SagaAbility.java index 8182325dce6..2287d992f94 100644 --- a/Mage/src/main/java/mage/abilities/common/SagaAbility.java +++ b/Mage/src/main/java/mage/abilities/common/SagaAbility.java @@ -28,6 +28,7 @@ import java.util.Arrays; public class SagaAbility extends SimpleStaticAbility { private final SagaChapter maxChapter; + private final boolean showSacText; public SagaAbility(Card card) { this(card, SagaChapter.CHAPTER_III); @@ -36,6 +37,7 @@ public class SagaAbility extends SimpleStaticAbility { public SagaAbility(Card card, SagaChapter maxChapter) { super(Zone.ALL, new AddCountersSourceEffect(CounterType.LORE.createInstance())); this.maxChapter = maxChapter; + this.showSacText = card.getSecondCardFace() == null; this.setRuleVisible(true); this.setRuleAtTheTop(true); Ability ability = new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.LORE.createInstance())); @@ -46,6 +48,7 @@ public class SagaAbility extends SimpleStaticAbility { public SagaAbility(final SagaAbility ability) { super(ability); this.maxChapter = ability.maxChapter; + this.showSacText = ability.showSacText; } public void addChapterEffect(Card card, SagaChapter chapter, Effect... effects) { @@ -105,7 +108,8 @@ public class SagaAbility extends SimpleStaticAbility { @Override public String getRule() { - return "(As this Saga enters and after your draw step, add a lore counter. Sacrifice after " + maxChapter.toString() + ".) "; + return "(As this Saga enters and after your draw step, add a lore counter." + + (showSacText ? " Sacrifice after " + maxChapter.toString() + '.' : "") + ") "; } @Override