mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
when a second game in the match starts, player will be shown directly the mulligan input
This commit is contained in:
@@ -85,7 +85,6 @@ public class GameNew {
|
|||||||
* their decks and other special starting conditions.
|
* their decks and other special starting conditions.
|
||||||
*/
|
*/
|
||||||
public static void newGame(final MatchController match, final Map<Player, PlayerStartConditions> playersConditions, final GameState game, final boolean canRandomFoil) {
|
public static void newGame(final MatchController match, final Map<Player, PlayerStartConditions> playersConditions, final GameState game, final boolean canRandomFoil) {
|
||||||
match.getInput().clearInput();
|
|
||||||
|
|
||||||
Card.resetUniqueNumber();
|
Card.resetUniqueNumber();
|
||||||
// need this code here, otherwise observables fail
|
// need this code here, otherwise observables fail
|
||||||
|
|||||||
@@ -159,7 +159,10 @@ public class MatchController {
|
|||||||
|
|
||||||
final boolean canRandomFoil = Singletons.getModel().getPreferences().getPrefBoolean(FPref.UI_RANDOM_FOIL) && gameType == GameType.Constructed;
|
final boolean canRandomFoil = Singletons.getModel().getPreferences().getPrefBoolean(FPref.UI_RANDOM_FOIL) && gameType == GameType.Constructed;
|
||||||
GameNew.newGame(this, startConditions, currentGame, canRandomFoil);
|
GameNew.newGame(this, startConditions, currentGame, canRandomFoil);
|
||||||
|
|
||||||
|
getInput().clearInput();
|
||||||
|
getInput().resetInput();
|
||||||
|
|
||||||
Thread thGame = new GameInputUpdatesThread(this, currentGame);
|
Thread thGame = new GameInputUpdatesThread(this, currentGame);
|
||||||
thGame.setName("Game input updater");
|
thGame.setName("Game input updater");
|
||||||
thGame.start();
|
thGame.start();
|
||||||
|
|||||||
Reference in New Issue
Block a user