- Unifying the list for card exceptions in DeckFormat, as suggested and coded by Austinio.

This commit is contained in:
Agetian
2018-04-23 09:21:55 +03:00
parent 4a8d4346be
commit 75d6ea6537
4 changed files with 11 additions and 10 deletions

View File

@@ -178,9 +178,6 @@ public abstract class ACEditorBase<TItem extends InventoryItem, TModel extends D
None
}
private static final List<String> limitExceptions = Arrays.asList(
new String[]{"Relentless Rats", "Shadowborn Apostle", "Rat Colony"});
/**
* @return pool of additions allowed to deck
*/
@@ -212,7 +209,7 @@ public abstract class ACEditorBase<TItem extends InventoryItem, TModel extends D
int max;
if (deck == null || card == null || card.getRules().getType().isBasic() ||
limit == CardLimit.None || limitExceptions.contains(card.getName())) {
limit == CardLimit.None || DeckFormat.getLimitExceptions().contains(card.getName())) {
max = Integer.MAX_VALUE;
}
else {