mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- Moved the "Start Game" stuff to only after Mulliganing and Leylining is finished.
This commit is contained in:
@@ -94,6 +94,7 @@ public class InputMulligan extends Input {
|
|||||||
for (int i = 0; i < newHand; i++) {
|
for (int i = 0; i < newHand; i++) {
|
||||||
player.drawCard();
|
player.drawCard();
|
||||||
}
|
}
|
||||||
|
AllZone.getGameLog().add("Mulligan", player + " has mulliganed down to " + newHand + " cards.", 0);
|
||||||
playerRating.notifyHasMulliganed();
|
playerRating.notifyHasMulliganed();
|
||||||
playerRating.notifyOpeningHandSize(newHand);
|
playerRating.notifyOpeningHandSize(newHand);
|
||||||
return newHand;
|
return newHand;
|
||||||
@@ -210,6 +211,10 @@ public class InputMulligan extends Input {
|
|||||||
|
|
||||||
ga.checkStateEffects();
|
ga.checkStateEffects();
|
||||||
PhaseHandler.setGameBegins(1);
|
PhaseHandler.setGameBegins(1);
|
||||||
|
AllZone.getGameLog().add("Turn",
|
||||||
|
"Turn " + Singletons.getModel().getGameState().getPhaseHandler().getTurn()
|
||||||
|
+ " (" + Singletons.getModel().getGameState().getPhaseHandler().getPlayerTurn() + ")",
|
||||||
|
0);
|
||||||
Singletons.getModel().getGameState().getPhaseHandler().setNeedToNextPhase(false);
|
Singletons.getModel().getGameState().getPhaseHandler().setNeedToNextPhase(false);
|
||||||
PhaseUtil.visuallyActivatePhase(Singletons.getModel().getGameState().getPhaseHandler().getPhase());
|
PhaseUtil.visuallyActivatePhase(Singletons.getModel().getGameState().getPhaseHandler().getPhase());
|
||||||
|
|
||||||
|
|||||||
@@ -290,12 +290,6 @@ public class GameNew {
|
|||||||
CMatchUI.SINGLETON_INSTANCE.setCard(AllZone.getHumanPlayer().getCardsIn(ZoneType.Hand).get(0));
|
CMatchUI.SINGLETON_INSTANCE.setCard(AllZone.getHumanPlayer().getCardsIn(ZoneType.Hand).get(0));
|
||||||
|
|
||||||
AllZone.getInputControl().setInput(new InputMulligan());
|
AllZone.getInputControl().setInput(new InputMulligan());
|
||||||
PhaseHandler.setGameBegins(1); // is this needed? It's already in InputMulligan...
|
|
||||||
|
|
||||||
AllZone.getGameLog().add("Turn",
|
|
||||||
"Turn " + Singletons.getModel().getGameState().getPhaseHandler().getTurn()
|
|
||||||
+ " (" + Singletons.getModel().getGameState().getPhaseHandler().getPlayerTurn() + ")",
|
|
||||||
0);
|
|
||||||
} // newGame()
|
} // newGame()
|
||||||
|
|
||||||
private static void newGameCleanup() {
|
private static void newGameCleanup() {
|
||||||
|
|||||||
Reference in New Issue
Block a user