mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 12:22:10 -08:00
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:
parent
5c8b5f23bb
commit
7531263fb9
59 changed files with 75 additions and 71 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue