We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a34e131 commit e02038dCopy full SHA for e02038d
android/build.gradle
@@ -21,8 +21,8 @@ android {
21
applicationId "com.unciv.app"
22
minSdkVersion 14
23
targetSdkVersion 29
24
- versionCode 354
25
- versionName "3.4.5"
+ versionCode 355
+ versionName "3.4.5-patch1"
26
27
archivesBaseName = "Unciv"
28
}
core/src/com/unciv/logic/automation/UnitAutomation.kt
@@ -273,7 +273,7 @@ class UnitAutomation{
273
val closestEnemy = closeEnemies.minBy { it.tileToAttack.arialDistanceTo(unit.getTile()) }
274
275
if (closestEnemy != null) {
276
- unit.movement.headTowards(closestEnemy.tileToAttack)
+ unit.movement.headTowards(closestEnemy.tileToAttackFrom)
277
return true
278
279
return false
0 commit comments