mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Fix (now really, I hope) ai vs ai matches in quest tournament mode.
This commit is contained in:
@@ -223,9 +223,13 @@ public class HostedMatch {
|
||||
match.startGame(game);
|
||||
|
||||
// After game is over...
|
||||
if (match.isMatchOver() && humanCount == 0) {
|
||||
if (humanCount == 0) {
|
||||
// ... if no human players, let AI decide next game
|
||||
addNextGameDecision(null, NextGameDecision.CONTINUE);
|
||||
if (match.isMatchOver()) {
|
||||
addNextGameDecision(null, NextGameDecision.QUIT);
|
||||
} else {
|
||||
addNextGameDecision(null, NextGameDecision.CONTINUE);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -196,7 +196,7 @@ public class QuestDraftUtils {
|
||||
rules.canCloneUseTargetsImage = FModel.getPreferences().getPrefBoolean(FPref.UI_CLONE_MODE_SOURCE);
|
||||
|
||||
final HostedMatch newMatch = GuiBase.getInterface().hostMatch();
|
||||
newMatch.startMatch(rules, null, nextMatch.matchStarter, nextMatch.humanPlayer, gui);
|
||||
newMatch.startMatch(rules, null, nextMatch.matchStarter, nextMatch.humanPlayer, GuiBase.getInterface().getNewGuiGame());
|
||||
}
|
||||
|
||||
public static void continueMatches(final IGuiGame gui) {
|
||||
|
||||
Reference in New Issue
Block a user