mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
small fix to saga text generation
This commit is contained in:
parent
6848de2d64
commit
6d1c7595bf
1 changed files with 5 additions and 1 deletions
|
@ -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 "<i>(As this Saga enters and after your draw step, add a lore counter. Sacrifice after " + maxChapter.toString() + ".)</i> ";
|
||||
return "<i>(As this Saga enters and after your draw step, add a lore counter."
|
||||
+ (showSacText ? " Sacrifice after " + maxChapter.toString() + '.' : "") + ")</i> ";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue