Fixed that in tournament a automatically generated deck will be submitted if player doesn't submit a deck in time (fixes #421).

This commit is contained in:
LevelX2 2014-04-29 17:32:24 +02:00
parent 21b582fbd3
commit 915651335a
12 changed files with 261 additions and 87 deletions

View file

@ -1512,7 +1512,7 @@ public class ComputerPlayer<T extends ComputerPlayer<T>> extends PlayerImpl<T> i
}
chosenColors = chooseDeckColorsIfPossible();
}
deck = buildDeck(new ArrayList<Card>(deck.getSideboard()), chosenColors);
deck = buildDeck(new ArrayList<>(deck.getSideboard()), chosenColors);
}
tournament.submitDeck(playerId, deck);
}