replace various cards with surveil errata

This commit is contained in:
Evan Kranzler 2022-10-15 10:03:38 -04:00
parent 32263a2792
commit 4a685a098d
20 changed files with 140 additions and 535 deletions

View file

@ -12,8 +12,8 @@ import mage.util.CardUtil;
*/
public class ScryEffect extends OneShotEffect {
protected int scryNumber;
protected boolean showEffectHint;
protected final int scryNumber;
protected final boolean showEffectHint;
public ScryEffect(int scryNumber) {
this(scryNumber, true);
@ -48,14 +48,16 @@ public class ScryEffect extends OneShotEffect {
private void setText() {
StringBuilder sb = new StringBuilder("scry ").append(scryNumber);
if (showEffectHint) {
if (scryNumber == 1) {
sb.append(". <i>(Look at the top card of your library. You may put that card on the bottom of your library.)</i>");
} else {
sb.append(". <i>(Look at the top ");
sb.append(CardUtil.numberToText(scryNumber));
sb.append(" cards of your library, then put any number of them on the bottom of your library and the rest on top in any order.)</i>");
}
if (!showEffectHint) {
staticText = sb.toString();
return;
}
if (scryNumber == 1) {
sb.append(". <i>(Look at the top card of your library. You may put that card on the bottom of your library.)</i>");
} else {
sb.append(". <i>(Look at the top ");
sb.append(CardUtil.numberToText(scryNumber));
sb.append(" cards of your library, then put any number of them on the bottom of your library and the rest on top in any order.)</i>");
}
staticText = sb.toString();
}

View file

@ -8,22 +8,28 @@ import mage.players.Player;
import mage.util.CardUtil;
/**
*
* @author TheElk801
*/
public class SurveilEffect extends OneShotEffect {
protected int surveilNumber;
protected final int surveilNumber;
protected final boolean showEffectHint;
public SurveilEffect(int scryNumber) {
public SurveilEffect(int surveilNumber) {
this(surveilNumber, true);
}
public SurveilEffect(int surveilNumber, boolean showEffectHint) {
super(Outcome.Benefit);
this.surveilNumber = scryNumber;
this.surveilNumber = surveilNumber;
this.showEffectHint = showEffectHint;
this.setText();
}
public SurveilEffect(final SurveilEffect effect) {
super(effect);
this.surveilNumber = effect.surveilNumber;
this.showEffectHint = effect.showEffectHint;
}
@Override
@ -42,6 +48,10 @@ public class SurveilEffect extends OneShotEffect {
private void setText() {
StringBuilder sb = new StringBuilder("surveil ").append(surveilNumber);
if (!showEffectHint) {
staticText = sb.toString();
return;
}
if (surveilNumber == 1) {
sb.append(". <i>(Look at the top card of your library. You may put that card into your graveyard.)</i>");
} else {