mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-23 03:23:17 -04:00
"Will not be replaced by automated units" unique fix
This commit is contained in:
parent
d7c606880f
commit
6e389de4b2
@ -188,6 +188,7 @@ class WorkerAutomation(
|
||||
|| (unit.isMilitary() && (it.militaryUnit == null || !it.militaryUnit!!.cache.hasUniqueToBuildImprovements)))
|
||||
&& (it.owningCity == null || it.getOwner() == civInfo)
|
||||
&& !it.isCityCenter()
|
||||
&& it.getTileImprovement()?.hasUnique(UniqueType.AutomatedUnitsWillNotReplace) != true
|
||||
&& getBasePriority(it, unit) > 1
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user