mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
Fix r28874 bug in limited gauntlets preventing progress past the first round
This commit is contained in:
@@ -78,8 +78,9 @@ public class GauntletMini {
|
|||||||
* Advances the tournament to the next round.
|
* Advances the tournament to the next round.
|
||||||
*/
|
*/
|
||||||
public void nextRound() {
|
public void nextRound() {
|
||||||
|
System.out.println("Moving from round " + currentRound + " to round " + (currentRound + 1) + " of " + rounds);
|
||||||
if (hostedMatch == null) {
|
if (hostedMatch == null) {
|
||||||
return;
|
throw new IllegalStateException("Cannot advance round when no match has been hosted.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentRound >= rounds) {
|
if (currentRound >= rounds) {
|
||||||
@@ -146,7 +147,7 @@ public class GauntletMini {
|
|||||||
starter.add(human);
|
starter.add(human);
|
||||||
starter.add(aiOpponents.get(currentRound - 1).setPlayer(GamePlayerUtil.createAiPlayer()));
|
starter.add(aiOpponents.get(currentRound - 1).setPlayer(GamePlayerUtil.createAiPlayer()));
|
||||||
|
|
||||||
final HostedMatch hostedMatch = GuiBase.getInterface().hostMatch();
|
hostedMatch = GuiBase.getInterface().hostMatch();
|
||||||
hostedMatch.startMatch(gauntletType, null, starter, human, GuiBase.getInterface().getNewGuiGame());
|
hostedMatch.startMatch(gauntletType, null, starter, human, GuiBase.getInterface().getNewGuiGame());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user