Resolved #1125 - cities can bombard over all tiles in a radius of 2

This commit is contained in:
Yair Morgenstern
2019-09-27 11:25:23 +03:00
parent df2faee2a8
commit 49d3ea2c0e
3 changed files with 4 additions and 2 deletions

View File

@ -115,6 +115,7 @@
name:"Oasis",
type:"TerrainFeature",
food:3,
gold:1,
movementCost:1,
unbuildable:true,
defenceBonus: -0.1,

View File

@ -21,7 +21,7 @@ android {
applicationId "com.unciv.app"
minSdkVersion 14
targetSdkVersion 29
versionCode 301
versionCode 302
versionName "3.1.0-patch1"
}

View File

@ -231,7 +231,8 @@ class UnitAutomation{
}
fun getBombardTargets(city: CityInfo): List<TileInfo> {
return city.getCenterTile().getViewableTiles(city.range).filter { containsAttackableEnemy(it, CityCombatant(city)) }
return city.getCenterTile().getViewableTiles(city.range,true)
.filter { containsAttackableEnemy(it, CityCombatant(city)) }
}
private fun tryAdvanceTowardsCloseEnemy(unit: MapUnit): Boolean {