Fix text [RAV] [GPT] [DIS] (#10359)

* Fix text: capitalization of regenerate

* Fix text: Circle of Protection Artifacts

* Fix text [RAV] [GPT] [DIS]
This commit is contained in:
xenohedron 2023-06-02 12:36:22 +03:00 committed by GitHub
parent 5c8b5f23bb
commit 7531263fb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
59 changed files with 75 additions and 71 deletions

View file

@ -97,9 +97,9 @@ public class CreateTokenTargetEffect extends OneShotEffect {
if (token.getDescription().endsWith("token")) {
sb.append("s");
}
int tokenLocation = sb.indexOf("token");
int tokenLocation = sb.indexOf("token ");
if (tokenLocation != -1) {
sb.replace(tokenLocation, tokenLocation + 6, "tokens");
sb.replace(tokenLocation, tokenLocation + 6, "tokens ");
}
}
if (attacking) {

View file

@ -12,6 +12,7 @@ import mage.filter.FilterObject;
import mage.game.Game;
import mage.game.events.GameEvent;
import mage.target.TargetSource;
import mage.util.CardUtil;
/**
*
@ -68,7 +69,7 @@ public class PreventNextDamageFromChosenSourceToYouEffect extends PreventionEffe
}
private String setText() {
StringBuilder sb = new StringBuilder("The next time a ").append(targetSource.getFilter().getMessage());
StringBuilder sb = new StringBuilder("The next time ").append(CardUtil.addArticle(targetSource.getFilter().getMessage()));
sb.append(" of your choice would deal damage to you");
if (duration == Duration.EndOfTurn) {
sb.append(" this turn");

View file

@ -19,13 +19,12 @@ import java.util.UUID;
public class RegenerateSourceEffect extends ReplacementEffectImpl {
public RegenerateSourceEffect() {
super(Duration.EndOfTurn, Outcome.Regenerate);
staticText = "Regenerate {this}";
this("{this}");
}
public RegenerateSourceEffect(String targetName) {
super(Duration.EndOfTurn, Outcome.Regenerate);
staticText = "Regenerate " + targetName;
staticText = "regenerate " + targetName;
}
public RegenerateSourceEffect(final RegenerateSourceEffect effect) {

View file

@ -72,7 +72,7 @@ public class RegenerateTargetEffect extends ReplacementEffectImpl {
return staticText;
}
StringBuilder sb = new StringBuilder();
sb.append("Regenerate ");
sb.append("regenerate ");
Target target = mode.getTargets().get(0);
if (target != null) {
if (!target.getTargetName().toLowerCase(Locale.ENGLISH).startsWith("another")) {
@ -82,4 +82,4 @@ public class RegenerateTargetEffect extends ReplacementEffectImpl {
}
return sb.toString();
}
}
}

View file

@ -102,6 +102,7 @@ public class SacrificeEffect extends OneShotEffect {
sb.append(CardUtil.addArticle(filter.getMessage()));
} else {
sb.append(CardUtil.numberToText(count.toString(), "a"));
sb.append(" ");
sb.append(filter.getMessage());
}
staticText = sb.toString();

View file

@ -28,7 +28,8 @@ public class MustBeBlockedByAllSourceEffect extends RequirementEffect {
public MustBeBlockedByAllSourceEffect(Duration duration, FilterCreaturePermanent filter) {
super(duration);
this.filter = filter;
staticText = "All " + filter.getMessage() + " able to block {this} do so";
staticText = "All " + filter.getMessage() + " able to block {this}"
+ (duration.equals(Duration.EndOfTurn) ? " this turn " : " ") + "do so";
}
public MustBeBlockedByAllSourceEffect(final MustBeBlockedByAllSourceEffect effect) {