mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
update deck check
This commit is contained in:
@@ -290,8 +290,18 @@ public class Match {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Deck myDeck = psc.getDeck();
|
Deck toCheck = psc.getDeck();
|
||||||
player.setDraftNotes(myDeck.getDraftNotes());
|
if (toCheck == null) {
|
||||||
|
try {
|
||||||
|
System.err.println(psc.getPlayer().getName() + " Deck is NULL...");
|
||||||
|
int val = rules.getGameType().getDeckFormat().getMainRange().getMinimum();
|
||||||
|
toCheck = new Deck("NULL");
|
||||||
|
if (val > 0)
|
||||||
|
toCheck.getMain().add("Wastes", val);
|
||||||
|
} catch (Exception ignored) {}
|
||||||
|
}
|
||||||
|
Pair<Deck, List<PaperCard>> myDeck = toCheck.getValid();
|
||||||
|
player.setDraftNotes(myDeck.getLeft().getDraftNotes());
|
||||||
|
|
||||||
Set<PaperCard> myRemovedAnteCards = null;
|
Set<PaperCard> myRemovedAnteCards = null;
|
||||||
if (!rules.useAnte()) {
|
if (!rules.useAnte()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user