[STX] various text fixes

This commit is contained in:
Evan Kranzler 2021-04-17 18:22:43 -04:00
parent a61d5543fa
commit 326c17fe4d
33 changed files with 65 additions and 47 deletions

View file

@ -42,12 +42,12 @@ public class LimitedTimesPerTurnActivatedAbility extends ActivatedAbilityImpl {
@Override
public String getRule() {
StringBuilder sb = new StringBuilder(super.getRule()).append(" Activate this ability ");
StringBuilder sb = new StringBuilder(super.getRule()).append(" Activate ");
if (condition != null) {
sb.append("only ").append(condition.toString()).append(" and ");
}
if (getTiming() == TimingRule.SORCERY) {
sb.append("only any time you could cast a sorcery and ");
sb.append("only as a sorcery and ");
}
switch (maxActivationsPerTurn) {
case 1:

View file

@ -121,7 +121,7 @@ public class CounterUnlessPaysEffect extends OneShotEffect {
sb.append(genericMana.getMessage());
}
if (exile) {
sb.append(". If that spell is countered this way, exile it instead of putting into its owner's graveyard.");
sb.append(". If that spell is countered this way, exile it instead of putting it into its owner's graveyard.");
}
return sb.toString();
}

View file

@ -12,6 +12,7 @@ import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.players.Player;
import mage.target.Target;
import mage.target.common.TargetCardInYourGraveyard;
import mage.util.CardUtil;
import java.util.ArrayList;
@ -138,7 +139,7 @@ public class PutOnLibraryTargetEffect extends OneShotEffect {
sb.append(CardUtil.numberToText(target.getMaxNumberOfTargets())).append(' ');
}
sb.append("target ").append(mode.getTargets().get(0).getTargetName()).append(" on ");
sb.append(onTop ? "top" : "the bottom").append(" of its owner's library");
sb.append(onTop ? "top" : "the bottom").append(" of ").append(mode.getTargets().get(0) instanceof TargetCardInYourGraveyard ? "your" : "its owner's").append(" library");
return sb.toString();

View file

@ -98,7 +98,9 @@ public class SacrificeEffect extends OneShotEffect {
sb.append(" sacrifice ");
}
}
if (!filter.getMessage().startsWith("another")) {
if (!filter.getMessage().startsWith("another")
&& !filter.getMessage().startsWith("a ")
&& !filter.getMessage().startsWith("an ")) {
sb.append(CardUtil.numberToText(count.toString(), "a")).append(' ');
}
sb.append(filter.getMessage());

View file

@ -12,7 +12,6 @@ import mage.players.Player;
import mage.target.common.TargetCardInLibrary;
/**
*
* @author BetaSteward_at_googlemail.com
*/
public class SearchLibraryPutOnLibraryEffect extends SearchEffect {
@ -72,12 +71,9 @@ public class SearchLibraryPutOnLibraryEffect extends SearchEffect {
StringBuilder sb = new StringBuilder();
sb.append("search your library for a ").append(target.getTargetName());
if (reveal) {
sb.append(" and reveal that card. Shuffle");
} else {
sb.append(", then shuffle");
sb.append(", reveal it");
}
sb.append(" your library and put that card on top of it");
sb.append(", then shuffle and put that card on top of it");
staticText = sb.toString();
}
}

View file

@ -30,6 +30,6 @@ public class ActivateAsSorceryManaAbility extends SimpleManaAbility {
@Override
public String getRule() {
return super.getRule() + " Activate this ability only any time you could cast a sorcery.";
return super.getRule() + " Activate only as a sorcery.";
}
}