mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-07 00:41:39 +07:00
Resolved #7936 - automated workers no longer try to improve enemy tiles
This commit is contained in:
@ -256,6 +256,7 @@ class WorkerAutomation(
|
||||
val workableTiles = currentTile.getTilesInDistance(4)
|
||||
.filter {
|
||||
(it.civilianUnit == null || it == currentTile)
|
||||
&& (it.owningCity == null || it.getOwner()==civInfo)
|
||||
&& tileCanBeImproved(unit, it)
|
||||
&& it.getTilesInDistance(2)
|
||||
.none { tile -> tile.isCityCenter() && tile.getCity()!!.civInfo.isAtWarWith(civInfo) }
|
||||
|
Reference in New Issue
Block a user