mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
This commit is contained in:
@@ -119,7 +119,8 @@ public class GameNew {
|
||||
boolean canSideBoard = !isFirstGame && gameType.isSideboardingAllowed() && hasSpareCards;
|
||||
|
||||
if (canSideBoard) {
|
||||
myDeck = player.getController().sideboard(psc.getCurrentDeck(), gameType);
|
||||
// This method changes the deck passed as parameter
|
||||
player.getController().sideboard(psc.getCurrentDeck(), gameType);
|
||||
} else {
|
||||
psc.restoreOriginalDeck();
|
||||
myDeck = psc.getCurrentDeck();
|
||||
|
||||
@@ -11,7 +11,7 @@ import forge.item.CardPrinted;
|
||||
public class PlayerStartConditions {
|
||||
private final Deck originalDeck;
|
||||
private Deck currentDeck;
|
||||
|
||||
|
||||
private int startingLife = 20;
|
||||
private int startingHand = 7;
|
||||
private Function<Player, Iterable<Card>> cardsOnBattlefield = null;
|
||||
@@ -32,6 +32,11 @@ public class PlayerStartConditions {
|
||||
return currentDeck;
|
||||
}
|
||||
|
||||
public void setCurrentDeck(Deck currentDeck0) {
|
||||
this.currentDeck = currentDeck0;
|
||||
}
|
||||
|
||||
|
||||
public final int getStartingLife() {
|
||||
return startingLife;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user