mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04:00
Fixed bug where AI could buy tiles not contiguous to city - @WhoIsJohannes
This commit is contained in:
parent
4c88fbb996
commit
7cfbc9b7fa
@ -347,7 +347,8 @@ object NextTurnAutomation {
|
||||
(it.hasViewableResource(civInfo)
|
||||
&& it.tileResource.resourceType == ResourceType.Strategic &&
|
||||
(civInfo.getCivResourcesByName()[it.resource!!] ?: 0) <= 3)
|
||||
it.isVisible(civInfo) && it.getOwner() == null &&
|
||||
it.isVisible(civInfo) && it.getOwner() == null
|
||||
&& it.neighbors.any { neighbor -> neighbor.getCity() == city }
|
||||
(hasNaturalWonder || hasLuxuryCivDoesntOwn || hasResourceCivHasNoneOrLittle)
|
||||
}
|
||||
for (highlyDesirableTileInCity in highlyDesirableTilesInCity) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user