[NEO] various text fixes

This commit is contained in:
Evan Kranzler 2022-02-14 21:10:48 -05:00
parent a2a0466212
commit 99e8b80184
4 changed files with 8 additions and 7 deletions

View file

@ -59,7 +59,7 @@ public class VerifyCardDataTest {
private static final Logger logger = Logger.getLogger(VerifyCardDataTest.class);
private static final String FULL_ABILITIES_CHECK_SET_CODE = "NEC"; // check all abilities and output cards with wrong abilities texts;
private static final String FULL_ABILITIES_CHECK_SET_CODE = "NEO"; // 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 ONLY_TEXT = false; // use when checking text locally, suppresses unnecessary checks and output messages
@ -237,7 +237,7 @@ public class VerifyCardDataTest {
}
private static boolean evergreenCheck(String s) {
return evergreenKeywords.contains(s) || s.startsWith("protection from") || s.startsWith("hexproof from");
return evergreenKeywords.contains(s) || s.startsWith("protection from") || s.startsWith("hexproof from") || s.startsWith("ward ");
}
private static <T> boolean eqSet(Collection<T> a, Collection<T> b) {
@ -1609,7 +1609,7 @@ public class VerifyCardDataTest {
refText = refText.substring(1, refText.length() - 1);
}
// planeswalker fix [-7]: xxx
refText = refText.replaceAll("\\[([\\\\+]?\\d*)\\]\\: ", "$1: ");
refText = refText.replaceAll("\\[([\\\\+]?\\d*)\\]\\: ", "$1: ").replaceAll("\\[\\X\\]\\: ", "-X: ");
// evergreen keyword fix
for (String s : refText.split("[\\$\\\n]")) {