diff --git a/core/src/com/unciv/logic/automation/BattleHelper.kt b/core/src/com/unciv/logic/automation/BattleHelper.kt index 8721d8ad7d..96cdff5107 100644 --- a/core/src/com/unciv/logic/automation/BattleHelper.kt +++ b/core/src/com/unciv/logic/automation/BattleHelper.kt @@ -39,6 +39,12 @@ object BattleHelper { ): ArrayList { val tilesWithEnemies = (tilesToCheck ?: unit.civInfo.viewableTiles) .filter { containsAttackableEnemy(it, MapUnitCombatant(unit)) } + .filterNot { val mapCombatant = Battle.getMapCombatantOfTile(it) + // IF all of these are true, THEN the action we'll be taking is in fact CAPTURING the civilian. + unit.baseUnit.isMelee() && mapCombatant is MapUnitCombatant && mapCombatant.unit.isCivilian() + // If we can't pass though that tile, we can't capture the civilian "remotely" + && !unit.movement.canPassThrough(it) + } val rangeOfAttack = unit.getRange()