mirror of
https://github.com/correl/mage.git
synced 2024-11-28 11:09:54 +00:00
removed instances of incorrect quote characters, expanded test
This commit is contained in:
parent
f66e844370
commit
fba68a7255
5 changed files with 34 additions and 26 deletions
|
@ -1,6 +1,5 @@
|
|||
package mage.cards.l;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.condition.common.IsStepCondition;
|
||||
|
@ -20,8 +19,9 @@ import mage.constants.Zone;
|
|||
import mage.counters.CounterType;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author L_J
|
||||
*/
|
||||
public final class LifeMatrix extends CardImpl {
|
||||
|
@ -37,8 +37,8 @@ public final class LifeMatrix extends CardImpl {
|
|||
new AddCountersTargetEffect(CounterType.MATRIX.createInstance()),
|
||||
new GenericManaCost(4),
|
||||
new IsStepCondition(PhaseStep.UPKEEP), "Put a matrix counter on target creature and "
|
||||
+ "that creature gains “Remove a matrix counter from this creature: "
|
||||
+ "Regenerate this creature.” Activate only during your upkeep.");
|
||||
+ "that creature gains \"Remove a matrix counter from this creature: "
|
||||
+ "Regenerate this creature.\" Activate only during your upkeep.");
|
||||
Ability ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||
new RegenerateSourceEffect(),
|
||||
new RemoveCountersSourceCost(CounterType.MATRIX.createInstance()));
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package mage.cards.m;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
|
@ -9,14 +8,15 @@ import mage.cards.CardImpl;
|
|||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
import mage.game.permanent.token.WolvesOfTheHuntToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author L_J
|
||||
*/
|
||||
public final class MasterOfTheHunt extends CardImpl {
|
||||
|
||||
|
||||
public MasterOfTheHunt(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G}{G}");
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
|
@ -24,16 +24,18 @@ public final class MasterOfTheHunt extends CardImpl {
|
|||
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.”
|
||||
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) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public MasterOfTheHunt copy() {
|
||||
return new MasterOfTheHunt(this);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
|
||||
package mage.cards.s;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.DelayedTriggeredAbility;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
|
@ -13,7 +11,10 @@ import mage.abilities.effects.common.DamageControllerEffect;
|
|||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
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.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
|
@ -23,8 +24,9 @@ import mage.game.permanent.token.SplinterToken;
|
|||
import mage.players.Player;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author L_J
|
||||
*/
|
||||
public final class SplinteringWind extends CardImpl {
|
||||
|
@ -53,7 +55,7 @@ class SplinteringWindCreateTokenEffect extends OneShotEffect {
|
|||
|
||||
public SplinteringWindCreateTokenEffect() {
|
||||
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) {
|
||||
|
@ -83,7 +85,7 @@ class SplinteringWindCreateTokenEffect extends OneShotEffect {
|
|||
}
|
||||
|
||||
class SplinteringWindDelayedTriggeredAbility extends DelayedTriggeredAbility {
|
||||
|
||||
|
||||
private UUID tokenId;
|
||||
|
||||
SplinteringWindDelayedTriggeredAbility(UUID tokenId) {
|
||||
|
|
|
@ -1425,14 +1425,20 @@ public class VerifyCardDataTest {
|
|||
}
|
||||
}
|
||||
|
||||
private static final String[] wrongSymbols = {"’", "“", "”"};
|
||||
|
||||
private void checkWrongSymbolsInRules(Card card) {
|
||||
if (card.getName().contains("’")) {
|
||||
fail(card, "card name", "card's names contains restricted symbol ’");
|
||||
for (String s : wrongSymbols) {
|
||||
if (card.getName().contains(s)) {
|
||||
fail(card, "card name", "card's name contains restricted symbol " + s);
|
||||
}
|
||||
}
|
||||
|
||||
for (String rule : card.getRules()) {
|
||||
if (rule.contains("’")) {
|
||||
fail(card, "rules", "card's rules contains restricted symbol ’");
|
||||
for (String s : wrongSymbols) {
|
||||
if (rule.contains(s)) {
|
||||
fail(card, "rules", "card's rules contains restricted symbol " + s);
|
||||
}
|
||||
}
|
||||
if (rule.contains("&mdash ")) {
|
||||
fail(card, "rules", "card's rules contains restricted test [&mdash ] instead [—]");
|
||||
|
|
|
@ -1,19 +1,17 @@
|
|||
|
||||
package mage.game.permanent.token;
|
||||
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.keyword.BandsWithOtherAbility;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author L_J
|
||||
*/
|
||||
public final class WolvesOfTheHuntToken extends TokenImpl {
|
||||
|
||||
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);
|
||||
subtype.add(SubType.WOLF);
|
||||
color.setGreen(true);
|
||||
|
|
Loading…
Reference in a new issue