From d581ca924f0b39eb4262729fa914e5c9bbe061d0 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Sat, 16 Feb 2019 23:41:11 +0200 Subject: [PATCH] Resolved #454 - Allow starting game with 0 AIs when there are 2 or more human players --- core/src/com/unciv/logic/civilization/VictoryManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/civilization/VictoryManager.kt b/core/src/com/unciv/logic/civilization/VictoryManager.kt index bb71b920..a1d3af53 100644 --- a/core/src/com/unciv/logic/civilization/VictoryManager.kt +++ b/core/src/com/unciv/logic/civilization/VictoryManager.kt @@ -31,7 +31,7 @@ class VictoryManager { fun hasWonCulturalVictory() = civInfo.policies.adoptedPolicies.count{it.endsWith("Complete")} > 3 - fun hasWonConquestVictory() = civInfo.gameInfo.civilizations.all { it.isPlayerCivilization() || it.isDefeated() } + fun hasWonConquestVictory() = civInfo.gameInfo.civilizations.all { it==civInfo || it.isDefeated() } fun hasWon() = hasWonConquestVictory() || hasWonCulturalVictory() || hasWonScientificVictory() }