[40K] Implemented Shard of the Nightbringer

This commit is contained in:
Evan Kranzler 2022-10-11 20:56:31 -04:00
parent 9717d44963
commit 4d81b76180
4 changed files with 98 additions and 10 deletions

View file

@ -1321,15 +1321,16 @@ public class VerifyCardDataTest {
return;
}
Collection<String> expected = ref.subtypes;
List<String> expected = new ArrayList<>(ref.subtypes);
// fix names (e.g. Urzas to Urza's)
if (expected != null && expected.contains("Urzas")) {
expected = new ArrayList<>(expected);
for (ListIterator<String> it = ((List<String>) expected).listIterator(); it.hasNext(); ) {
if (it.next().equals("Urzas")) {
for (ListIterator<String> it = expected.listIterator(); it.hasNext(); ) {
switch (it.next()) {
case "Urzas":
it.set("Urza's");
}
break;
case "Ctan":
it.set("C'tan");
}
}
@ -1339,11 +1340,9 @@ public class VerifyCardDataTest {
.stream()
.map(SubType::toString)
.collect(Collectors.toSet());
actual.removeIf(subtypesToIgnore::contains);
if (expected != null) {
expected.removeIf(subtypesToIgnore::contains);
}
actual.removeIf(subtypesToIgnore::contains);
expected.removeIf(subtypesToIgnore::contains);
for (SubType subType : card.getSubtype()) {
if (!subType.isCustomSet() && !subType.canGain(card)) {