diff --git a/src/game/engine/scenes/tests/auto_play.gd b/src/game/engine/scenes/tests/auto_play.gd index 811b643c..769cb37d 100644 --- a/src/game/engine/scenes/tests/auto_play.gd +++ b/src/game/engine/scenes/tests/auto_play.gd @@ -358,6 +358,10 @@ func _on_victory(player_index: int, victory_type: String) -> void: _victory = true _victory_winner = player_index _victory_type = victory_type + # Also set the stringified outcome — _finalize_run writes the last + # turn_stats line from _outcome, and without this override the line + # persists as "in_progress" even though a winner was declared. + _outcome = "victory" print("AutoPlay: VICTORY! Player %d wins via %s on turn %d" % [player_index, victory_type, _turn_count]) _append_event({ "type": "victory",