mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 22:06:05 -04:00
Resolved #5713 - AI doesn't try attacking with non-attack units
This commit is contained in:
parent
b9d2078442
commit
57f3bf2bb2
@ -129,7 +129,7 @@ object UnitAutomation {
|
|||||||
// Might die next turn - move!
|
// Might die next turn - move!
|
||||||
if (unit.health <= unit.getDamageFromTerrain() && tryHealUnit(unit)) return
|
if (unit.health <= unit.getDamageFromTerrain() && tryHealUnit(unit)) return
|
||||||
|
|
||||||
if (unit.isCivilian()) {
|
if (unit.isCivilian() || unit.hasUnique(UniqueType.CannotAttack)) {
|
||||||
if (tryRunAwayIfNeccessary(unit)) return
|
if (tryRunAwayIfNeccessary(unit)) return
|
||||||
|
|
||||||
if (unit.hasUnique(UniqueType.FoundCity))
|
if (unit.hasUnique(UniqueType.FoundCity))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user