mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Don't recurse if the game is already over.
This commit is contained in:
@@ -184,7 +184,7 @@ public class GameSimulator {
|
||||
debugPrint = true;
|
||||
printDiff(origLines, simLines);
|
||||
|
||||
if (recursionDepth < MAX_DEPTH) {
|
||||
if (recursionDepth < MAX_DEPTH && !simGame.isGameOver()) {
|
||||
System.out.println("Recursing DEPTH=" + recursionDepth);
|
||||
System.out.println(" With: " + sa);
|
||||
SpellAbilityPicker sim = new SpellAbilityPicker(simGame, aiPlayer);
|
||||
|
||||
Reference in New Issue
Block a user