Vazal the Compleat

This commit is contained in:
Adam Pantel
2021-02-17 09:33:32 -05:00
parent e38bfeca5a
commit 6c3f1e5f2f
4 changed files with 15 additions and 3 deletions

View File

@@ -375,9 +375,10 @@ public enum DeckFormat {
public static Integer canHaveSpecificNumberInDeck(final IPaperCard card) {
// Ideally, this would be parsed during card parsing and set this value
if (Iterables.contains(card.getRules().getMainPart().getKeywords(),
"A deck can have up to seven cards named CARDNAME.")) {
if (card.getRules().hasKeyword("A deck can have up to seven cards named CARDNAME.")) {
return 7;
} else if (card.getRules().hasKeyword("Megalegendary")) {
return 1;
}
return null;