mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +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
|
// Human Sideboarding
|
||||||
boolean validDeck = false;
|
boolean validDeck = false;
|
||||||
List<Card> newDeck = null;
|
List<Card> newDeck = null;
|
||||||
int deckMinSize = gameType.getDeckMinimum();
|
int deckMinSize = Math.min(deck.getMain().countAll(), gameType.getDeckMinimum());
|
||||||
|
|
||||||
while (!validDeck) {
|
while (!validDeck) {
|
||||||
newDeck = GuiChoose.getOrderChoices("Sideboard", "Main Deck", sideboardSize,
|
newDeck = GuiChoose.getOrderChoices("Sideboard", "Main Deck", sideboardSize,
|
||||||
deck.getSideboard().toForgeCardList(), deck.getMain().toForgeCardList(), null, true);
|
deck.getSideboard().toForgeCardList(), deck.getMain().toForgeCardList(), null, true);
|
||||||
|
|
||||||
if (newDeck.size() >= deckMinSize || !gameType.isLimited()) {
|
if (newDeck.size() >= deckMinSize) {
|
||||||
validDeck = true;
|
validDeck = true;
|
||||||
} else {
|
} else {
|
||||||
StringBuilder errMsg = new StringBuilder("Too few cards in your main deck (minimum ");
|
StringBuilder errMsg = new StringBuilder("Too few cards in your main deck (minimum ");
|
||||||
|
|||||||
Reference in New Issue
Block a user