[STX] update lesson collation

This commit is contained in:
Evan Kranzler 2021-03-31 19:13:00 -04:00
parent 6d95cba36c
commit 6954b5df13

View file

@ -166,7 +166,9 @@ public final class StrixhavenSchoolOfMages extends ExpansionSet {
@Override
public List<CardInfo> getCardsByRarity(Rarity rarity) {
List<CardInfo> cards = super.getCardsByRarity(rarity);
cards.removeIf(cardInfo -> cardInfo.getCard().hasSubtype(SubType.LESSON, null));
if (rarity != Rarity.UNCOMMON) {
cards.removeIf(cardInfo -> cardInfo.getCard().hasSubtype(SubType.LESSON, null));
}
return cards;
}
}