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

@@ -201,8 +201,7 @@ public abstract class ACEditorBase<TItem extends InventoryItem, TModel extends D
int qty = itemEntry.getValue();
int max;
if (deck == null || card == null || card.getRules().getType().isBasic() ||
limit == CardLimit.None || DeckFormat.getLimitExceptions().contains(card.getName())) {
if (deck == null || card == null || limit == CardLimit.None || DeckFormat.canHaveAnyNumberOf(card)) {
max = Integer.MAX_VALUE;
}
else {