mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 22:37:02 -04:00
Fix bug when city states gets all techs from spectators (#2881)
This commit is contained in:
parent
5a97a9be3b
commit
94c4b27838
@ -140,7 +140,7 @@ object NextTurnAutomation{
|
|||||||
|
|
||||||
private fun getFreeTechForCityStates(civInfo: CivilizationInfo) {
|
private fun getFreeTechForCityStates(civInfo: CivilizationInfo) {
|
||||||
//City-States automatically get all invented techs
|
//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
|
for (entry in otherCiv.tech.techsResearched
|
||||||
.filterNot { civInfo.tech.isResearched(it) }
|
.filterNot { civInfo.tech.isResearched(it) }
|
||||||
.filter { civInfo.tech.canBeResearched(it) }) {
|
.filter { civInfo.tech.canBeResearched(it) }) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user