mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
DeckFormat: A deck can have any number of cards named CARDNAME.
This commit is contained in:
committed by
Michael Kamensky
parent
af3c645521
commit
0606a00942
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user