forked from External/mage
add verify check for "custom" subtypes that become official
This commit is contained in:
parent
250826d631
commit
e03a164bb3
3 changed files with 11 additions and 4 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue