DeckFormat: A deck can have any number of cards named CARDNAME.

This commit is contained in:
Hans Mackowiak
2019-01-12 16:13:00 +00:00
committed by Michael Kamensky
parent af3c645521
commit 0606a00942
8 changed files with 34 additions and 26 deletions

View File

@@ -730,7 +730,7 @@ public class FDeckEditor extends TabPageScreen<FDeckEditor> {
if (deck == null || card == null) {
max = Integer.MAX_VALUE;
}
else if (limit == CardLimit.None || card.getRules().getType().isBasic() || DeckFormat.getLimitExceptions().contains(card.getName())) {
else if (limit == CardLimit.None || DeckFormat.canHaveAnyNumberOf(card)) {
max = Integer.MAX_VALUE;
if (parentScreen.isLimitedEditor() && !isAddSource) {
//prevent adding more than is in other pool when editing limited decks