Lots of text fixes (#10636)

This commit is contained in:
xenohedron 2023-07-16 14:55:59 -04:00 committed by GitHub
parent 6b616dbf20
commit 1f9de03bf3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
102 changed files with 165 additions and 168 deletions

View file

@ -16,7 +16,7 @@ public class LookAtTargetPlayerHandEffect extends OneShotEffect {
public LookAtTargetPlayerHandEffect() {
super(Outcome.Benefit);
this.staticText = "Look at target player's hand";
this.staticText = "look at target player's hand";
}
public LookAtTargetPlayerHandEffect(final LookAtTargetPlayerHandEffect effect) {

View file

@ -41,6 +41,6 @@ public class TurnFaceUpTargetEffect extends OneShotEffect {
@Override
public String getText(Mode mode) {
return "turn target " + mode.getTargets().get(0).getTargetName() + " face-up";
return "turn target " + mode.getTargets().get(0).getTargetName() + " face up";
}
}

View file

@ -20,6 +20,7 @@ public class CantBeBlockedByCreaturesAllEffect extends RestrictionEffect {
this.filterCreatures = filterCreatures;
this.filterBlockedBy = filterBlockedBy;
staticText = filterCreatures.getMessage() + " can't be blocked "
+ (duration == Duration.EndOfTurn ? "this turn " : "")
+ (filterBlockedBy.getMessage().startsWith("except by") ? "" : "by ")
+ filterBlockedBy.getMessage();
}

View file

@ -121,7 +121,7 @@ public class GainAbilityControlledEffect extends ContinuousEffectImpl {
private void setText() {
StringBuilder sb = new StringBuilder();
if (excludeSource) {
sb.append("Other ");
sb.append("other ");
}
String gainedAbility = ability.getRule();
sb.append(filter.getMessage()).append(" you control ");

View file

@ -35,7 +35,8 @@ public class GainAbilitySourceEffect extends ContinuousEffectImpl {
public GainAbilitySourceEffect(Ability ability, Duration duration, boolean onCard) {
this(ability, duration, onCard, false);
staticText = "{this} gains " + ability.getRule() + ' ' + duration.toString();
staticText = "{this} gains " + ability.getRule()
+ (duration.toString().isEmpty() ? "" : ' ' + duration.toString());
}
public GainAbilitySourceEffect(Ability ability, Duration duration, boolean onCard, boolean noStaticText) {