mirror of
https://github.com/correl/mage.git
synced 2025-01-11 11:05:23 +00:00
Added info text to limited check, if deck has less than 40 cards.
This commit is contained in:
parent
d7747e2898
commit
a97d019ca5
1 changed files with 6 additions and 3 deletions
|
@ -43,11 +43,14 @@ public class Limited extends DeckValidator {
|
|||
|
||||
@Override
|
||||
public boolean validate(Deck deck) {
|
||||
boolean valid = true;
|
||||
//20091005 - 100.2b
|
||||
if (deck.getCards().size() < 40)
|
||||
return false;
|
||||
if (deck.getCards().size() < 40) {
|
||||
invalid.put("Deck", "Must contain at least 40 cards: has only " + deck.getCards().size() + " cards");
|
||||
valid = false;
|
||||
|
||||
return true;
|
||||
}
|
||||
return valid;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue