This commit is contained in:
Maxmtg
2013-02-04 09:44:05 +00:00
parent e46a43e8ee
commit c60dcdd34b
2 changed files with 8 additions and 2 deletions

View File

@@ -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();

View File

@@ -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;
} }