mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00:00
[40K] a few text fixes
This commit is contained in:
parent
60269cfcbf
commit
3b9b2e15be
5 changed files with 22 additions and 20 deletions
|
@ -61,7 +61,7 @@ public final class AbaddonTheDespoiler extends CardImpl {
|
||||||
MyTurnCondition.instance, "during your turn, spells you cast from " +
|
MyTurnCondition.instance, "during your turn, spells you cast from " +
|
||||||
"your hand with mana value X or less have cascade, where X is the " +
|
"your hand with mana value X or less have cascade, where X is the " +
|
||||||
"total amount of life your opponents have lost this turn"
|
"total amount of life your opponents have lost this turn"
|
||||||
)).addHint(hint));
|
)).addHint(hint).withFlavorWord("Mark of the Chaos Ascendant"));
|
||||||
}
|
}
|
||||||
|
|
||||||
private AbaddonTheDespoiler(final AbaddonTheDespoiler card) {
|
private AbaddonTheDespoiler(final AbaddonTheDespoiler card) {
|
||||||
|
|
|
@ -35,7 +35,7 @@ public final class AspiringChampion extends CardImpl {
|
||||||
// Ruinous Ascension -- When Aspiring Champion deals combat damage to a player, sacrifice it. If you do, reveal cards from the top of your library until you reveal a creature card. Put that card onto the battlefield, then shuffle the rest into your library. If that creature is a Demon, it deals damage equal to its power to each opponent.
|
// Ruinous Ascension -- When Aspiring Champion deals combat damage to a player, sacrifice it. If you do, reveal cards from the top of your library until you reveal a creature card. Put that card onto the battlefield, then shuffle the rest into your library. If that creature is a Demon, it deals damage equal to its power to each opponent.
|
||||||
this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(
|
this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(
|
||||||
new AspiringChampionEffect(), false
|
new AspiringChampionEffect(), false
|
||||||
).withFlavorWord("Ruinous Ascension"));
|
).setTriggerPhrase("When {this} deals combat damage to a player, ").withFlavorWord("Ruinous Ascension"));
|
||||||
}
|
}
|
||||||
|
|
||||||
private AspiringChampion(final AspiringChampion card) {
|
private AspiringChampion(final AspiringChampion card) {
|
||||||
|
|
|
@ -42,7 +42,7 @@ class BileBlightEffect extends BoostAllEffect {
|
||||||
|
|
||||||
public BileBlightEffect() {
|
public BileBlightEffect() {
|
||||||
super(-3, -3, Duration.EndOfTurn);
|
super(-3, -3, Duration.EndOfTurn);
|
||||||
staticText = "Target creature and all creatures with the same name as that creature get -3/-3 until end of turn";
|
staticText = "Target creature and all other creatures with the same name as that creature get -3/-3 until end of turn";
|
||||||
}
|
}
|
||||||
|
|
||||||
public BileBlightEffect(final BileBlightEffect effect) {
|
public BileBlightEffect(final BileBlightEffect effect) {
|
||||||
|
@ -53,19 +53,21 @@ class BileBlightEffect extends BoostAllEffect {
|
||||||
public void init(Ability source, Game game) {
|
public void init(Ability source, Game game) {
|
||||||
super.init(source, game);
|
super.init(source, game);
|
||||||
affectedObjectList.clear();
|
affectedObjectList.clear();
|
||||||
if (this.affectedObjectsSet) {
|
if (!this.affectedObjectsSet) {
|
||||||
Permanent target = game.getPermanent(getTargetPointer().getFirst(game, source));
|
return;
|
||||||
if (target != null) {
|
}
|
||||||
if (CardUtil.haveEmptyName(target)) { // face down creature
|
Permanent target = game.getPermanent(getTargetPointer().getFirst(game, source));
|
||||||
affectedObjectList.add(new MageObjectReference(target, game));
|
if (target == null) {
|
||||||
} else {
|
return;
|
||||||
String name = target.getName();
|
}
|
||||||
for (Permanent perm : game.getBattlefield().getActivePermanents(source.getControllerId(), game)) {
|
if (CardUtil.haveEmptyName(target)) { // face down creature
|
||||||
if (CardUtil.haveSameNames(perm, name, game)) {
|
affectedObjectList.add(new MageObjectReference(target, game));
|
||||||
affectedObjectList.add(new MageObjectReference(perm, game));
|
return;
|
||||||
}
|
}
|
||||||
}
|
String name = target.getName();
|
||||||
}
|
for (Permanent perm : game.getBattlefield().getActivePermanents(source.getControllerId(), game)) {
|
||||||
|
if (CardUtil.haveSameNames(perm, name, game)) {
|
||||||
|
affectedObjectList.add(new MageObjectReference(perm, game));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,12 +16,12 @@ import mage.constants.SubType;
|
||||||
import mage.filter.StaticFilters;
|
import mage.filter.StaticFilters;
|
||||||
import mage.game.Controllable;
|
import mage.game.Controllable;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
|
import mage.game.permanent.token.WhiteAstartesWarriorToken;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import java.util.function.Function;
|
import java.util.function.Function;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
import mage.game.permanent.token.WhiteAstartesWarriorToken;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author TheElk801
|
* @author TheElk801
|
||||||
|
@ -82,7 +82,7 @@ enum BirthOfTheImperiumValue implements DynamicValue {
|
||||||
.map(Controllable::getControllerId)
|
.map(Controllable::getControllerId)
|
||||||
.collect(Collectors.toMap(Function.identity(), x -> 1, Integer::sum));
|
.collect(Collectors.toMap(Function.identity(), x -> 1, Integer::sum));
|
||||||
int yourCreatures = map.getOrDefault(sourceAbility.getControllerId(), 0);
|
int yourCreatures = map.getOrDefault(sourceAbility.getControllerId(), 0);
|
||||||
return yourCreatures > 0 ? game
|
return yourCreatures > 0 ? 2 * game
|
||||||
.getOpponents(sourceAbility.getControllerId())
|
.getOpponents(sourceAbility.getControllerId())
|
||||||
.stream().mapToInt(uuid -> map.getOrDefault(uuid, 0))
|
.stream().mapToInt(uuid -> map.getOrDefault(uuid, 0))
|
||||||
.filter(x -> x < yourCreatures)
|
.filter(x -> x < yourCreatures)
|
||||||
|
@ -101,6 +101,6 @@ enum BirthOfTheImperiumValue implements DynamicValue {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "1";
|
return "two";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,7 +60,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 = "BRC"; // check all abilities and output cards with wrong abilities texts;
|
private static final String FULL_ABILITIES_CHECK_SET_CODE = "40K"; // 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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue