Exploring units no longer auto-enter city states

This commit is contained in:
Yair Morgenstern
2020-01-23 20:50:53 +02:00
parent e419443eb6
commit c29ccadc60
2 changed files with 2 additions and 1 deletions

View File

@ -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())