[MAT] various text fixes

This commit is contained in:
theelk801 2023-05-08 20:13:48 -04:00
parent fd64ed8849
commit 67507fed67
10 changed files with 16 additions and 13 deletions

View file

@ -47,7 +47,7 @@ public final class AnimistsMight extends CardImpl {
// Target creature you control deals damage equal to twice its power to target creature or planeswalker you don't control. // Target creature you control deals damage equal to twice its power to target creature or planeswalker you don't control.
this.getSpellAbility().addEffect(new DamageWithPowerFromOneToAnotherTargetEffect("", 2)); this.getSpellAbility().addEffect(new DamageWithPowerFromOneToAnotherTargetEffect("", 2));
this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent()); this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent());
this.getSpellAbility().addTarget(new TargetPermanent(filter)); this.getSpellAbility().addTarget(new TargetPermanent(filter2));
} }
private AnimistsMight(final AnimistsMight card) { private AnimistsMight(final AnimistsMight card) {

View file

@ -35,12 +35,12 @@ public final class CoppercoatVanguard extends CardImpl {
// Each other Human you control gets +1/+0 and has ward {1}. // Each other Human you control gets +1/+0 and has ward {1}.
Ability ability = new SimpleStaticAbility(new BoostControlledEffect( Ability ability = new SimpleStaticAbility(new BoostControlledEffect(
1, 1, Duration.WhileOnBattlefield, filter, true 1, 0, Duration.WhileOnBattlefield, filter, true
)); ));
ability.addEffect(new GainAbilityControlledEffect( ability.addEffect(new GainAbilityControlledEffect(
new WardAbility(new GenericManaCost(1), false), new WardAbility(new GenericManaCost(1), false),
Duration.WhileOnBattlefield, filter2 Duration.WhileOnBattlefield, filter2
).setText("and has ward {1} <i>(Whenever it becomes the target " + ).setText("and has ward {1}. <i>(Whenever it becomes the target " +
"of a spell or ability an opponent controls, counter it unless that player pays {1}.)</i>")); "of a spell or ability an opponent controls, counter it unless that player pays {1}.)</i>"));
this.addAbility(ability); this.addAbility(ability);
} }

View file

@ -45,7 +45,7 @@ public final class GoldForgedThopteryx extends CardImpl {
// Each legendary permanent you control has ward {2}. // Each legendary permanent you control has ward {2}.
this.addAbility(new SimpleStaticAbility(new GainAbilityControlledEffect( this.addAbility(new SimpleStaticAbility(new GainAbilityControlledEffect(
new WardAbility(new GenericManaCost(2)), Duration.WhileOnBattlefield, filter new WardAbility(new GenericManaCost(2)), Duration.WhileOnBattlefield, filter
).setText("each legendary permanent you control has ward {2} <i>(Whenever it becomes the target " + ).setText("each legendary permanent you control has ward {2}. <i>(Whenever it becomes the target " +
"of a spell or ability an opponent controls, counter it unless that player pays {2})</i>"))); "of a spell or ability an opponent controls, counter it unless that player pays {2})</i>")));
} }

View file

@ -28,7 +28,7 @@ import java.util.UUID;
*/ */
public final class KioraSovereignOfTheDeep extends CardImpl { public final class KioraSovereignOfTheDeep extends CardImpl {
private static final FilterSpell filter = new FilterSpell(""); private static final FilterSpell filter = new FilterSpell("a Kraken, Leviathan, Octopus, or Serpent spell");
static { static {
filter.add(Predicates.or( filter.add(Predicates.or(

View file

@ -46,7 +46,7 @@ public final class LeylineImmersion extends CardImpl {
// Enchanted creature has ward {2} and "{T}: Add five mana in any combination of colors. Spend this mana only to cast spells." // Enchanted creature has ward {2} and "{T}: Add five mana in any combination of colors. Spend this mana only to cast spells."
Ability ability = new SimpleStaticAbility(new GainAbilityAttachedEffect( Ability ability = new SimpleStaticAbility(new GainAbilityAttachedEffect(
new WardAbility(new GenericManaCost(2), false), AttachmentType.AURA new WardAbility(new GenericManaCost(2), false), AttachmentType.AURA
)); ).setText("enchanted creature has ward {2}"));
ability.addEffect(new GainAbilityAttachedEffect( ability.addEffect(new GainAbilityAttachedEffect(
new ConditionalAnyColorManaAbility(5, new LeylineImmersionManaBuilder()), AttachmentType.AURA new ConditionalAnyColorManaAbility(5, new LeylineImmersionManaBuilder()), AttachmentType.AURA
).setText("and \"{T}: Add five mana in any combination of colors. Spend this mana only to cast spells.\"")); ).setText("and \"{T}: Add five mana in any combination of colors. Spend this mana only to cast spells.\""));

View file

@ -14,6 +14,7 @@ import mage.constants.*;
import mage.counters.CounterType; import mage.counters.CounterType;
import mage.game.Game; import mage.game.Game;
import mage.game.events.GameEvent; import mage.game.events.GameEvent;
import mage.game.permanent.token.FoodToken;
import mage.game.permanent.token.TreasureToken; import mage.game.permanent.token.TreasureToken;
import mage.players.Player; import mage.players.Player;
import mage.target.common.TargetCreaturePermanent; import mage.target.common.TargetCreaturePermanent;
@ -95,8 +96,8 @@ class RoccoStreetChefEffect extends OneShotEffect {
class RoccoStreetChefTriggeredAbility extends TriggeredAbilityImpl { class RoccoStreetChefTriggeredAbility extends TriggeredAbilityImpl {
RoccoStreetChefTriggeredAbility() { RoccoStreetChefTriggeredAbility() {
super(Zone.BATTLEFIELD, new AddCountersTargetEffect(CounterType.P1P1.createInstance()), true); super(Zone.BATTLEFIELD, new AddCountersTargetEffect(CounterType.P1P1.createInstance()).setText("you put a +1/+1 counter on target creature"));
this.addEffect(new CreateTokenEffect(new TreasureToken()).concatBy("and")); this.addEffect(new CreateTokenEffect(new FoodToken()).concatBy("and"));
this.addTarget(new TargetCreaturePermanent()); this.addTarget(new TargetCreaturePermanent());
this.setTriggerPhrase("Whenever a player plays a land from exile or casts a spell from exile, "); this.setTriggerPhrase("Whenever a player plays a land from exile or casts a spell from exile, ");
} }

View file

@ -23,7 +23,7 @@ import java.util.UUID;
*/ */
public final class SamutVizierOfNaktamun extends CardImpl { public final class SamutVizierOfNaktamun extends CardImpl {
private static final FilterPermanent filter = new FilterControlledCreaturePermanent("a creature you controls"); private static final FilterPermanent filter = new FilterControlledCreaturePermanent("a creature you control");
static { static {
filter.add(EnteredThisTurnPredicate.instance); filter.add(EnteredThisTurnPredicate.instance);
@ -51,7 +51,7 @@ public final class SamutVizierOfNaktamun extends CardImpl {
// Whenever a creature you control deals combat damage to a player, if that creature entered the battlefield this turn, draw a card. // Whenever a creature you control deals combat damage to a player, if that creature entered the battlefield this turn, draw a card.
this.addAbility(new DealsDamageToAPlayerAllTriggeredAbility( this.addAbility(new DealsDamageToAPlayerAllTriggeredAbility(
new DrawCardSourceControllerEffect(1) new DrawCardSourceControllerEffect(1)
.concatBy("if that creature entered the battlefield this turn, "), .setText("if that creature entered the battlefield this turn, draw a card"),
filter, false, SetTargetPointer.NONE, true filter, false, SetTargetPointer.NONE, true
)); ));
} }

View file

@ -21,7 +21,7 @@ import java.util.UUID;
*/ */
public final class SigardaFontOfBlessings extends CardImpl { public final class SigardaFontOfBlessings extends CardImpl {
private static final FilterCard filter = new FilterCard("Angel spells and Human spells"); private static final FilterCard filter = new FilterCard("cast Angel spells and Human spells");
static { static {
filter.add(Predicates.or( filter.add(Predicates.or(

View file

@ -52,7 +52,9 @@ public final class TyvarTheBellicose extends CardImpl {
new TyvarTheBellicoseTriggeredAbility(), new TyvarTheBellicoseTriggeredAbility(),
Duration.WhileOnBattlefield, Duration.WhileOnBattlefield,
StaticFilters.FILTER_PERMANENT_CREATURE StaticFilters.FILTER_PERMANENT_CREATURE
))); ).setText("each creature you control has \"Whenever a mana ability of this creature resolves, " +
"put a number of +1/+1 counters on it equal to the amount of mana this creature produced. " +
"This ability triggers only once each turn.\"")));
} }
private TyvarTheBellicose(final TyvarTheBellicose card) { private TyvarTheBellicose(final TyvarTheBellicose card) {

View file

@ -59,7 +59,7 @@ public class VerifyCardDataTest {
private static final Logger logger = Logger.getLogger(VerifyCardDataTest.class); private static final Logger logger = Logger.getLogger(VerifyCardDataTest.class);
private static final String FULL_ABILITIES_CHECK_SET_CODE = "ONC"; // check all abilities and output cards with wrong abilities texts; private static final String FULL_ABILITIES_CHECK_SET_CODE = "MAT"; // check all abilities and output cards with wrong abilities texts;
private static final boolean CHECK_ONLY_ABILITIES_TEXT = false; // use when checking text locally, suppresses unnecessary checks and output messages private static final boolean CHECK_ONLY_ABILITIES_TEXT = false; // use when checking text locally, suppresses unnecessary checks and output messages
private static final boolean AUTO_FIX_SAMPLE_DECKS = false; // debug only: auto-fix sample decks by test_checkSampleDecks test run private static final boolean AUTO_FIX_SAMPLE_DECKS = false; // debug only: auto-fix sample decks by test_checkSampleDecks test run