Added info text to limited check, if deck has less than 40 cards.

This commit is contained in:
LevelX2 2013-09-05 16:24:44 +02:00
parent d7747e2898
commit a97d019ca5

View file

@ -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;
}
}