mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
* Fixed that a check for the submitted deck was wrongly also made for limited tournaments.
This commit is contained in:
parent
a24067473a
commit
c43521438d
1 changed files with 7 additions and 3 deletions
|
@ -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()) {
|
||||||
|
|
Loading…
Reference in a new issue