Fix bug when city states gets all techs from spectators (#2881)

This commit is contained in:
Alexander Korolyov 2020-07-25 22:08:19 +02:00 committed by GitHub
parent 5a97a9be3b
commit 94c4b27838
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) }) {