add verify check for "custom" subtypes that become official

This commit is contained in:
theelk801 2025-07-01 17:18:05 -04:00
parent 250826d631
commit e03a164bb3
3 changed files with 11 additions and 4 deletions

View file

@ -42,6 +42,7 @@ public final class MtgJsonCard {
public boolean isFullArt;
public String frameVersion;
public List<String> printings; // set codes with that card
public boolean isFunny;
@Override
public String toString() {

View file

@ -2055,7 +2055,13 @@ public class VerifyCardDataTest {
expected.removeIf(subtypesToIgnore::contains);
for (SubType subType : card.getSubtype()) {
if (!subType.isCustomSet() && !subType.canGain(card)) {
if (subType.isCustomSet()) {
if (!ref.isFunny) {
fail(card, "subtypes", "subtype " + subType + " is marked as \"custom\" but is in an official set");
}
continue;
}
if (!subType.canGain(card)) {
String cardTypeString = card
.getCardType()
.stream()