From 94c4b2783880e1049df1cf75d2e1f8f006082923 Mon Sep 17 00:00:00 2001 From: Alexander Korolyov <49795502+alkorolyov@users.noreply.github.com> Date: Sat, 25 Jul 2020 22:08:19 +0200 Subject: [PATCH] Fix bug when city states gets all techs from spectators (#2881) --- core/src/com/unciv/logic/automation/NextTurnAutomation.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/automation/NextTurnAutomation.kt b/core/src/com/unciv/logic/automation/NextTurnAutomation.kt index ca7436a9ef..dc0114e6ea 100644 --- a/core/src/com/unciv/logic/automation/NextTurnAutomation.kt +++ b/core/src/com/unciv/logic/automation/NextTurnAutomation.kt @@ -140,7 +140,7 @@ object NextTurnAutomation{ private fun getFreeTechForCityStates(civInfo: CivilizationInfo) { //City-States automatically get all invented techs - for (otherCiv in civInfo.getKnownCivs().filterNot { it.isCityState() }) { + for (otherCiv in civInfo.getKnownCivs().filter { it.isMajorCiv() }) { for (entry in otherCiv.tech.techsResearched .filterNot { civInfo.tech.isResearched(it) } .filter { civInfo.tech.canBeResearched(it) }) {