mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-14 09:48:12 +07:00
Exploring units no longer auto-enter city states
This commit is contained in:
@ -389,6 +389,7 @@ class UnitAutomation {
|
||||
.filter {
|
||||
unit.movement.canMoveTo(it) && it.position !in unit.civInfo.exploredTiles
|
||||
&& unit.movement.canReach(it)
|
||||
&& (it.getOwner()==null || !it.getOwner()!!.isCityState())
|
||||
}
|
||||
if (unexploredTilesAtDistance.isNotEmpty()) {
|
||||
unit.movement.headTowards(unexploredTilesAtDistance.random())
|
||||
|
Reference in New Issue
Block a user