more unrelated text fixes (#10761)

* some text fixes [LTR] [LTC] [CMM]

* another batch of text fixes

* followup fixes

* unrelated cleanup

* fix corresponding ability text in test
This commit is contained in:
xenohedron 2023-08-05 20:53:43 -04:00 committed by GitHub
parent fa77261e3a
commit 127b7be9b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
67 changed files with 112 additions and 128 deletions

View file

@ -19,7 +19,7 @@ public class ExileTopCreatureCardOfGraveyardCost extends CostImpl {
public ExileTopCreatureCardOfGraveyardCost(int amount) {
this.amount = amount;
this.text = "Exile the top creature card of your graveyard";
this.text = "exile the top creature card of your graveyard";
}
public ExileTopCreatureCardOfGraveyardCost(ExileTopCreatureCardOfGraveyardCost cost) {

View file

@ -22,7 +22,7 @@ public class ReturnToHandFromGraveyardCost extends CostImpl {
public ReturnToHandFromGraveyardCost(TargetCardInYourGraveyard target) {
this.addTarget(target);
this.text = "return " + target.getDescription() + " from graveyard to it's owner's hand";
this.text = "return " + target.getDescription() + " from your graveyard to your hand";
}
public ReturnToHandFromGraveyardCost(ReturnToHandFromGraveyardCost cost) {

View file

@ -76,11 +76,4 @@ public class DamageAllEffect extends OneShotEffect {
staticText = sb.toString();
}
public String getSourceName() {
return sourceName;
}
public void setSourceName(String sourceName) {
this.sourceName = sourceName;
}
}

View file

@ -24,8 +24,8 @@ public class DamageWithExcessEffect extends OneShotEffect {
public DamageWithExcessEffect(DynamicValue amount) {
super(Outcome.Damage);
this.amount = amount;
this.staticText = "{this} deals " + amount + " damage to target creature" +
(amount instanceof StaticValue ? "" : ", where X is " + amount.getMessage()) +
this.staticText = "{this} deals " + (amount instanceof StaticValue ? amount : "X") + " damage to target creature" +
(amount instanceof StaticValue ? "" : ", where X is the number of " + amount.getMessage()) +
". Excess damage is dealt to that creature's controller instead";
}

View file

@ -7,6 +7,7 @@ import mage.abilities.TriggeredAbility;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.effects.ContinuousEffectImpl;
import mage.abilities.keyword.ProtectionAbility;
import mage.abilities.mana.ManaAbility;
import mage.constants.*;
import mage.game.Game;
import mage.game.permanent.Permanent;
@ -143,7 +144,9 @@ public class GainAbilityAttachedEffect extends ContinuousEffectImpl {
}
boolean quotes = ability instanceof SimpleActivatedAbility
|| ability instanceof TriggeredAbility
|| ability instanceof LoyaltyAbility;
|| ability instanceof LoyaltyAbility
|| ability instanceof ManaAbility
|| ability.getRule().startsWith("If ");
if (quotes) {
sb.append('"');
}

View file

@ -29,7 +29,7 @@ public class SearchLibraryGraveyardWithLessMVPutIntoPlay extends OneShotEffect {
public SearchLibraryGraveyardWithLessMVPutIntoPlay(FilterCard filter) {
super(Outcome.PutCreatureInPlay);
this.filter = filter;
staticText = "Search your library and/or graveyard for a " + filter.getMessage() + " with mana value X or less, put it onto the battlefield. If you search your library this way, shuffle.";
staticText = "Search your library and/or graveyard for a " + filter.getMessage() + " with mana value X or less and put it onto the battlefield. If you search your library this way, shuffle.";
}
protected SearchLibraryGraveyardWithLessMVPutIntoPlay(final SearchLibraryGraveyardWithLessMVPutIntoPlay effect) {