mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
- 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:
@@ -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 ");
|
||||
|
||||
Reference in New Issue
Block a user