mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- AI vs AI matches should never be played out from an update call if the user has chosen to simulate random outcomes for AI matches.
This commit is contained in:
@@ -272,15 +272,18 @@ public class QuestDraftUtils {
|
|||||||
|
|
||||||
final DraftMatchup nextMatch = matchups.remove(0);
|
final DraftMatchup nextMatch = matchups.remove(0);
|
||||||
|
|
||||||
matchInProgress = true;
|
|
||||||
|
|
||||||
if (nextMatch.hasHumanPlayer()) {
|
if (nextMatch.hasHumanPlayer()) {
|
||||||
waitForUserInput = true;
|
waitForUserInput = true;
|
||||||
} else {
|
} else {
|
||||||
|
if (FModel.getQuestPreferences().getPrefInt(QuestPreferences.QPref.SIMULATE_AI_VS_AI_RESULTS) == 1) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
gui.disableOverlay();
|
gui.disableOverlay();
|
||||||
waitForUserInput = false;
|
waitForUserInput = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
matchInProgress = true;
|
||||||
|
|
||||||
GameRules rules = createQuestDraftRuleset();
|
GameRules rules = createQuestDraftRuleset();
|
||||||
|
|
||||||
final HostedMatch newMatch = GuiBase.getInterface().hostMatch();
|
final HostedMatch newMatch = GuiBase.getInterface().hostMatch();
|
||||||
|
|||||||
Reference in New Issue
Block a user