"Will not be replaced by automated units" unique fix

This commit is contained in:
yairm210 2024-07-10 11:55:45 +03:00
parent d7c606880f
commit 6e389de4b2

View File

@ -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
}