tryAdvanceTowardsCloseEnemy

private fun tryAdvanceTowardsCloseEnemy(unit: MapUnit): Boolean

Move towards the closest attackable enemy of the unit.

Limited by CLOSE_ENEMY_TURNS_AWAY_LIMIT and CLOSE_ENEMY_TILES_AWAY_LIMIT. Tiles attack from which would result in instant death of the unit are ignored.

Sources

jvm source
Link copied to clipboard