mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 20:11:59 -08:00
Tests: added checks that planeswalkers must be legendary;
This commit is contained in:
parent
e5759127ac
commit
490d207efe
1 changed files with 13 additions and 0 deletions
|
|
@ -383,6 +383,19 @@ public class VerifyCardDataTest {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 2. all planeswalkers must be legendary
|
||||||
|
for (ExpansionSet set : sets) {
|
||||||
|
for (ExpansionSet.SetCardInfo cardInfo : set.getSetCardInfo()) {
|
||||||
|
Card card = CardImpl.createCard(cardInfo.getCardClass(), new CardSetInfo(cardInfo.getName(), set.getCode(),
|
||||||
|
cardInfo.getCardNumber(), cardInfo.getRarity(), cardInfo.getGraphicInfo()));
|
||||||
|
Assert.assertNotNull(card);
|
||||||
|
|
||||||
|
if (card.getCardType().contains(CardType.PLANESWALKER) && !card.getSuperType().contains(SuperType.LEGENDARY)) {
|
||||||
|
errorsList.add("error, planeswalker must have legendary type: " + set.getCode() + " - " + set.getName() + " - " + card.getName() + " - " + card.getCardNumber());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
printMessages(warningsList);
|
printMessages(warningsList);
|
||||||
printMessages(errorsList);
|
printMessages(errorsList);
|
||||||
if (errorsList.size() > 0) {
|
if (errorsList.size() > 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue