forked from External/mage
various text fixes
This commit is contained in:
parent
4af54ef196
commit
2675b75c60
10 changed files with 23 additions and 17 deletions
|
|
@ -50,7 +50,7 @@ public final class AlrundGodOfTheCosmos extends ModalDoubleFacesCard {
|
||||||
|
|
||||||
// Alrund gets +1/+1 for each card in your hand and each foretold card you own in exile.
|
// Alrund gets +1/+1 for each card in your hand and each foretold card you own in exile.
|
||||||
Effect effect = new BoostSourceEffect(AlrundGodOfTheCosmosValue.instance, AlrundGodOfTheCosmosValue.instance, Duration.EndOfGame);
|
Effect effect = new BoostSourceEffect(AlrundGodOfTheCosmosValue.instance, AlrundGodOfTheCosmosValue.instance, Duration.EndOfGame);
|
||||||
effect.setText("Alrund gets +1/+1 for each card in your hand and each foretold card you own in exile.");
|
effect.setText("{this} gets +1/+1 for each card in your hand and each foretold card you own in exile.");
|
||||||
Ability ability = new SimpleStaticAbility(effect);
|
Ability ability = new SimpleStaticAbility(effect);
|
||||||
this.getLeftHalfCard().addAbility(ability);
|
this.getLeftHalfCard().addAbility(ability);
|
||||||
|
|
||||||
|
|
@ -89,7 +89,7 @@ class AlrundGodOfTheCosmosEffect extends OneShotEffect {
|
||||||
|
|
||||||
public AlrundGodOfTheCosmosEffect() {
|
public AlrundGodOfTheCosmosEffect() {
|
||||||
super(Outcome.Neutral);
|
super(Outcome.Neutral);
|
||||||
staticText = ", then reveal the top two cards of your library. Put all cards revealed this way of the chosen type into your hand and the rest on the bottom of your library in any order";
|
staticText = ", then reveal the top two cards of your library. Put all cards of the chosen type revealed this way into your hand and the rest on the bottom of your library in any order";
|
||||||
}
|
}
|
||||||
|
|
||||||
public AlrundGodOfTheCosmosEffect(final AlrundGodOfTheCosmosEffect effect) {
|
public AlrundGodOfTheCosmosEffect(final AlrundGodOfTheCosmosEffect effect) {
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ public final class DwynenGiltLeafDaen extends CardImpl {
|
||||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield, new FilterCreaturePermanent(SubType.ELF, "Elf creatures"), true)));
|
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield, new FilterCreaturePermanent(SubType.ELF, "Elf creatures"), true)));
|
||||||
|
|
||||||
// Whenever Dwynen, Gilt-Leaf Daen attacks, you gain 1 life for each attacking Elf you control.
|
// Whenever Dwynen, Gilt-Leaf Daen attacks, you gain 1 life for each attacking Elf you control.
|
||||||
this.addAbility(new AttacksTriggeredAbility(new GainLifeEffect(new PermanentsOnBattlefieldCount(filter)), false));
|
this.addAbility(new AttacksTriggeredAbility(new GainLifeEffect(new PermanentsOnBattlefieldCount(filter)).setText("you gain 1 life for each attacking Elf you control"), false));
|
||||||
}
|
}
|
||||||
|
|
||||||
private DwynenGiltLeafDaen(final DwynenGiltLeafDaen card) {
|
private DwynenGiltLeafDaen(final DwynenGiltLeafDaen card) {
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ public final class EvangelOfHeliod extends CardImpl {
|
||||||
// When Evangel of Heliod enters the battlefield, create a number of 1/1 white Soldier creature tokens equal to your devotion to white.
|
// When Evangel of Heliod enters the battlefield, create a number of 1/1 white Soldier creature tokens equal to your devotion to white.
|
||||||
this.addAbility(new EntersBattlefieldTriggeredAbility(
|
this.addAbility(new EntersBattlefieldTriggeredAbility(
|
||||||
new CreateTokenEffect(new SoldierToken(), DevotionCount.W)
|
new CreateTokenEffect(new SoldierToken(), DevotionCount.W)
|
||||||
|
.setText("create a number of 1/1 white Soldier creature tokens equal to your devotion to white")
|
||||||
).addHint(DevotionCount.W.getHint()));
|
).addHint(DevotionCount.W.getHint()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ public final class JaggedScarArchers extends CardImpl {
|
||||||
// Jagged-Scar Archers's power and toughness are each equal to the number of Elves you control.
|
// Jagged-Scar Archers's power and toughness are each equal to the number of Elves you control.
|
||||||
this.addAbility(new SimpleStaticAbility(Zone.ALL, new SetPowerToughnessSourceEffect(new PermanentsOnBattlefieldCount(controlledElvesFilter), Duration.EndOfGame)));
|
this.addAbility(new SimpleStaticAbility(Zone.ALL, new SetPowerToughnessSourceEffect(new PermanentsOnBattlefieldCount(controlledElvesFilter), Duration.EndOfGame)));
|
||||||
// {tap}: Jagged-Scar Archers deals damage equal to its power to target creature with flying.
|
// {tap}: Jagged-Scar Archers deals damage equal to its power to target creature with flying.
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(new SourcePermanentPowerCount()), new TapSourceCost());
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(new SourcePermanentPowerCount()).setText("{this} deals damage equal to its power to target creature with flying"), new TapSourceCost());
|
||||||
ability.addTarget(new TargetCreaturePermanent(flyingCreatureFilter));
|
ability.addTarget(new TargetCreaturePermanent(flyingCreatureFilter));
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -182,6 +182,9 @@ class ValkmiraProtectorsShieldTriggeredAbility extends TriggeredAbilityImpl {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean checkTrigger(GameEvent event, Game game) {
|
public boolean checkTrigger(GameEvent event, Game game) {
|
||||||
|
if (event.getTargetId().equals(getSourceId())) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
StackObject stackObject = game.getStack().getStackObject(event.getSourceId());
|
StackObject stackObject = game.getStack().getStackObject(event.getSourceId());
|
||||||
if (stackObject == null || !game.getOpponents(getControllerId()).contains(stackObject.getControllerId())) {
|
if (stackObject == null || !game.getOpponents(getControllerId()).contains(stackObject.getControllerId())) {
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -200,7 +203,7 @@ class ValkmiraProtectorsShieldTriggeredAbility extends TriggeredAbilityImpl {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getRule() {
|
public String getRule() {
|
||||||
return "Whenever you or a permanent you control becomes the target of a spell or ability " +
|
return "Whenever you or another permanent you control becomes the target of a spell or ability " +
|
||||||
"an opponent controls, counter that spell or ability unless its controller pays {1}.";
|
"an opponent controls, counter that spell or ability unless its controller pays {1}.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,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 = "M21"; // check all abilities and output cards with wrong abilities texts;
|
private static final String FULL_ABILITIES_CHECK_SET_CODE = "KHC"; // check all abilities and output cards with wrong abilities texts;
|
||||||
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
|
||||||
private static final boolean ONLY_TEXT = false; // use when checking text locally, suppresses unnecessary checks and output messages
|
private static final boolean ONLY_TEXT = false; // use when checking text locally, suppresses unnecessary checks and output messages
|
||||||
|
|
||||||
|
|
@ -1630,16 +1630,16 @@ public class VerifyCardDataTest {
|
||||||
refText = refText.replaceAll("\\[([\\−\\+]?\\d*)\\]\\: ", "$1: ").replaceAll("\\[\\−X\\]\\: ", "-X: ");
|
refText = refText.replaceAll("\\[([\\−\\+]?\\d*)\\]\\: ", "$1: ").replaceAll("\\[\\−X\\]\\: ", "-X: ");
|
||||||
|
|
||||||
// evergreen keyword fix
|
// evergreen keyword fix
|
||||||
for (String s : refText.split("[\\$\\\n]")) {
|
for (String s : refText.replaceAll(" \\(.+?\\)", "").split("[\\$\\\n]")) {
|
||||||
if (Arrays
|
if (Arrays
|
||||||
.stream(s.split(", "))
|
.stream(s.split("[,;] "))
|
||||||
.map(String::toLowerCase)
|
.map(String::toLowerCase)
|
||||||
.allMatch(VerifyCardDataTest::evergreenCheck)) {
|
.allMatch(VerifyCardDataTest::evergreenCheck)) {
|
||||||
String replacement = Arrays
|
String replacement = Arrays
|
||||||
.stream(s.split(", "))
|
.stream(s.split("[,;] "))
|
||||||
.map(CardUtil::getTextWithFirstCharUpperCase)
|
.map(CardUtil::getTextWithFirstCharUpperCase)
|
||||||
.reduce("", (a, b) -> a + '\n' + b);
|
.collect(Collectors.joining("\n"));
|
||||||
refText = refText.replace(s, replacement.substring(1));
|
refText = refText.replace(s, replacement);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// modal spell fix
|
// modal spell fix
|
||||||
|
|
|
||||||
|
|
@ -70,10 +70,12 @@ public class SetPowerToughnessTargetEffect extends ContinuousEffectImpl {
|
||||||
}
|
}
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
if (mode.getTargets().get(0).getMinNumberOfTargets() == 0) {
|
if (mode.getTargets().get(0).getMinNumberOfTargets() == 0) {
|
||||||
|
if (!mode.getTargets().get(0).getTargetName().startsWith("any")) {
|
||||||
sb.append("up to ");
|
sb.append("up to ");
|
||||||
sb.append(CardUtil.numberToText(mode.getTargets().get(0).getMaxNumberOfTargets()));
|
sb.append(CardUtil.numberToText(mode.getTargets().get(0).getMaxNumberOfTargets()));
|
||||||
sb.append(' ');
|
sb.append(' ');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (!mode.getTargets().get(0).getTargetName().contains("target")) {
|
if (!mode.getTargets().get(0).getTargetName().contains("target")) {
|
||||||
sb.append("target ");
|
sb.append("target ");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue