mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
[LTR] Implement Nazgul
This commit is contained in:
parent
75d1bdf71c
commit
82073bba73
5 changed files with 122 additions and 16 deletions
|
|
@ -38,7 +38,7 @@ public class Limited extends DeckValidator {
|
|||
Map<String, Integer> counts = new HashMap<>();
|
||||
countCards(counts, deck.getCards());
|
||||
for (Map.Entry<String, Integer> entry : counts.entrySet()) {
|
||||
if (entry.getValue() > 7 && entry.getKey().equals("Seven Dwarves")) {
|
||||
if (entry.getValue() > getMaxCopies(entry.getKey(), Integer.MAX_VALUE)) {
|
||||
addError(DeckValidatorErrorType.OTHER, entry.getKey(), "Too many: " + entry.getValue(), true);
|
||||
valid = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue