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