removed instances of incorrect quote characters, expanded test

This commit is contained in:
Evan Kranzler 2021-11-24 20:56:31 -05:00
parent f66e844370
commit fba68a7255
5 changed files with 34 additions and 26 deletions

View file

@ -1,6 +1,5 @@
package mage.cards.l; package mage.cards.l;
import java.util.UUID;
import mage.abilities.Ability; import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.condition.common.IsStepCondition; import mage.abilities.condition.common.IsStepCondition;
@ -20,8 +19,9 @@ import mage.constants.Zone;
import mage.counters.CounterType; import mage.counters.CounterType;
import mage.target.common.TargetCreaturePermanent; import mage.target.common.TargetCreaturePermanent;
import java.util.UUID;
/** /**
*
* @author L_J * @author L_J
*/ */
public final class LifeMatrix extends CardImpl { public final class LifeMatrix extends CardImpl {
@ -37,8 +37,8 @@ public final class LifeMatrix extends CardImpl {
new AddCountersTargetEffect(CounterType.MATRIX.createInstance()), new AddCountersTargetEffect(CounterType.MATRIX.createInstance()),
new GenericManaCost(4), new GenericManaCost(4),
new IsStepCondition(PhaseStep.UPKEEP), "Put a matrix counter on target creature and " new IsStepCondition(PhaseStep.UPKEEP), "Put a matrix counter on target creature and "
+ "that creature gains Remove a matrix counter from this creature: " + "that creature gains \"Remove a matrix counter from this creature: "
+ "Regenerate this creature. Activate only during your upkeep."); + "Regenerate this creature.\" Activate only during your upkeep.");
Ability ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, Ability ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD,
new RegenerateSourceEffect(), new RegenerateSourceEffect(),
new RemoveCountersSourceCost(CounterType.MATRIX.createInstance())); new RemoveCountersSourceCost(CounterType.MATRIX.createInstance()));

View file

@ -1,6 +1,5 @@
package mage.cards.m; package mage.cards.m;
import java.util.UUID;
import mage.MageInt; import mage.MageInt;
import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.ManaCostsImpl; import mage.abilities.costs.mana.ManaCostsImpl;
@ -9,14 +8,15 @@ import mage.cards.CardImpl;
import mage.cards.CardSetInfo; import mage.cards.CardSetInfo;
import mage.constants.CardType; import mage.constants.CardType;
import mage.constants.SubType; import mage.constants.SubType;
import mage.constants.Zone;
import mage.game.permanent.token.WolvesOfTheHuntToken; import mage.game.permanent.token.WolvesOfTheHuntToken;
import java.util.UUID;
/** /**
* @author L_J * @author L_J
*/ */
public final class MasterOfTheHunt extends CardImpl { public final class MasterOfTheHunt extends CardImpl {
public MasterOfTheHunt(UUID ownerId, CardSetInfo setInfo) { public MasterOfTheHunt(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G}{G}"); super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G}{G}");
this.subtype.add(SubType.HUMAN); this.subtype.add(SubType.HUMAN);
@ -24,16 +24,18 @@ public final class MasterOfTheHunt extends CardImpl {
this.toughness = new MageInt(2); this.toughness = new MageInt(2);
// Create a 1/1 green Wolf creature token named Wolves of the Hunt. It has bands with other creatures named Wolves of the Hunt. // Create a 1/1 green Wolf creature token named Wolves of the Hunt. It has bands with other creatures named Wolves of the Hunt.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new WolvesOfTheHuntToken()).setText("Create a 1/1 green Wolf creature token named Wolves of the Hunt. It has “bands with other creatures named Wolves of the Hunt.”"), new ManaCostsImpl("{2}{G}{G}"))); this.addAbility(new SimpleActivatedAbility(
new CreateTokenEffect(new WolvesOfTheHuntToken()), new ManaCostsImpl<>("{2}{G}{G}")
));
} }
private MasterOfTheHunt(final MasterOfTheHunt card) { private MasterOfTheHunt(final MasterOfTheHunt card) {
super(card); super(card);
} }
@Override @Override
public MasterOfTheHunt copy() { public MasterOfTheHunt copy() {
return new MasterOfTheHunt(this); return new MasterOfTheHunt(this);
} }
} }

View file

@ -1,7 +1,5 @@
package mage.cards.s; package mage.cards.s;
import java.util.UUID;
import mage.abilities.Ability; import mage.abilities.Ability;
import mage.abilities.DelayedTriggeredAbility; import mage.abilities.DelayedTriggeredAbility;
import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.common.SimpleActivatedAbility;
@ -13,7 +11,10 @@ import mage.abilities.effects.common.DamageControllerEffect;
import mage.abilities.effects.common.DamageTargetEffect; import mage.abilities.effects.common.DamageTargetEffect;
import mage.cards.CardImpl; import mage.cards.CardImpl;
import mage.cards.CardSetInfo; import mage.cards.CardSetInfo;
import mage.constants.*; import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.Outcome;
import mage.constants.Zone;
import mage.filter.common.FilterControlledCreaturePermanent; import mage.filter.common.FilterControlledCreaturePermanent;
import mage.game.Game; import mage.game.Game;
import mage.game.events.GameEvent; import mage.game.events.GameEvent;
@ -23,8 +24,9 @@ import mage.game.permanent.token.SplinterToken;
import mage.players.Player; import mage.players.Player;
import mage.target.common.TargetCreaturePermanent; import mage.target.common.TargetCreaturePermanent;
import java.util.UUID;
/** /**
*
* @author L_J * @author L_J
*/ */
public final class SplinteringWind extends CardImpl { public final class SplinteringWind extends CardImpl {
@ -53,7 +55,7 @@ class SplinteringWindCreateTokenEffect extends OneShotEffect {
public SplinteringWindCreateTokenEffect() { public SplinteringWindCreateTokenEffect() {
super(Outcome.PutCreatureInPlay); super(Outcome.PutCreatureInPlay);
staticText = "create a 1/1 green Splinter creature token. It has flying and “Cumulative upkeep {G}.” When it leaves the battlefield, it deals 1 damage to you and each creature you control"; staticText = "create a 1/1 green Splinter creature token. It has flying and \"Cumulative upkeep {G}.\" When it leaves the battlefield, it deals 1 damage to you and each creature you control";
} }
public SplinteringWindCreateTokenEffect(final SplinteringWindCreateTokenEffect effect) { public SplinteringWindCreateTokenEffect(final SplinteringWindCreateTokenEffect effect) {
@ -83,7 +85,7 @@ class SplinteringWindCreateTokenEffect extends OneShotEffect {
} }
class SplinteringWindDelayedTriggeredAbility extends DelayedTriggeredAbility { class SplinteringWindDelayedTriggeredAbility extends DelayedTriggeredAbility {
private UUID tokenId; private UUID tokenId;
SplinteringWindDelayedTriggeredAbility(UUID tokenId) { SplinteringWindDelayedTriggeredAbility(UUID tokenId) {

View file

@ -1425,14 +1425,20 @@ public class VerifyCardDataTest {
} }
} }
private static final String[] wrongSymbols = {"", "", ""};
private void checkWrongSymbolsInRules(Card card) { private void checkWrongSymbolsInRules(Card card) {
if (card.getName().contains("")) { for (String s : wrongSymbols) {
fail(card, "card name", "card's names contains restricted symbol "); if (card.getName().contains(s)) {
fail(card, "card name", "card's name contains restricted symbol " + s);
}
} }
for (String rule : card.getRules()) { for (String rule : card.getRules()) {
if (rule.contains("")) { for (String s : wrongSymbols) {
fail(card, "rules", "card's rules contains restricted symbol "); if (rule.contains(s)) {
fail(card, "rules", "card's rules contains restricted symbol " + s);
}
} }
if (rule.contains("&mdash ")) { if (rule.contains("&mdash ")) {
fail(card, "rules", "card's rules contains restricted test [&mdash ] instead [&mdash;]"); fail(card, "rules", "card's rules contains restricted test [&mdash ] instead [&mdash;]");

View file

@ -1,19 +1,17 @@
package mage.game.permanent.token; package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt; import mage.MageInt;
import mage.abilities.keyword.BandsWithOtherAbility; import mage.abilities.keyword.BandsWithOtherAbility;
import mage.constants.CardType;
import mage.constants.SubType;
/** /**
*
* @author L_J * @author L_J
*/ */
public final class WolvesOfTheHuntToken extends TokenImpl { public final class WolvesOfTheHuntToken extends TokenImpl {
public WolvesOfTheHuntToken() { public WolvesOfTheHuntToken() {
super("Wolves of the Hunt", "1/1 green Wolf creature token named Wolves of the Hunt"); super("Wolves of the Hunt", "1/1 green Wolf creature token named Wolves of the Hunt. It has \"bands with other creatures named Wolves of the Hunt.\"");
cardType.add(CardType.CREATURE); cardType.add(CardType.CREATURE);
subtype.add(SubType.WOLF); subtype.add(SubType.WOLF);
color.setGreen(true); color.setGreen(true);