- Sideboarding: during deck validation between the duels in a match, the deck will be considered valid if it's no less than either the format-enforced minimum or the minimum after the previous duel in a match (to account for the possibility of losing a card on ante).

This commit is contained in:
Agetian
2012-12-16 06:50:21 +00:00
parent bdef7e1938
commit bba687411a

View File

@@ -184,13 +184,13 @@ public class GameNew {
// Human Sideboarding
boolean validDeck = false;
List<Card> newDeck = null;
int deckMinSize = gameType.getDeckMinimum();
int deckMinSize = Math.min(deck.getMain().countAll(), gameType.getDeckMinimum());
while (!validDeck) {
newDeck = GuiChoose.getOrderChoices("Sideboard", "Main Deck", sideboardSize,
deck.getSideboard().toForgeCardList(), deck.getMain().toForgeCardList(), null, true);
if (newDeck.size() >= deckMinSize || !gameType.isLimited()) {
if (newDeck.size() >= deckMinSize) {
validDeck = true;
} else {
StringBuilder errMsg = new StringBuilder("Too few cards in your main deck (minimum ");