* Fixed that a check for the submitted deck was wrongly also made for limited tournaments.

This commit is contained in:
LevelX2 2014-10-22 19:57:28 +02:00
parent a24067473a
commit c43521438d

View file

@ -175,9 +175,13 @@ public class TableController {
return false; return false;
} }
Deck deck = null; Deck deck = null;
if (!table.getTournament().getTournamentType().isLimited()) {
if (deckList != null) { if (deckList != null) {
deck = Deck.load(deckList, false, false); deck = Deck.load(deckList, false, false);
} else {
user.showUserMessage("Join Table", "No valid deck selected!");
return false;
}
if (!Main.isTestMode() && !table.getValidator().validate(deck)) { if (!Main.isTestMode() && !table.getValidator().validate(deck)) {
StringBuilder sb = new StringBuilder("You (").append(name).append(") have an invalid deck for the selected ").append(table.getValidator().getName()).append(" Format. \n\n"); StringBuilder sb = new StringBuilder("You (").append(name).append(") have an invalid deck for the selected ").append(table.getValidator().getName()).append(" Format. \n\n");
for (Map.Entry<String, String> entry : table.getValidator().getInvalid().entrySet()) { for (Map.Entry<String, String> entry : table.getValidator().getInvalid().entrySet()) {