From 3da0baf5bad91a44e8c4717faf80f43baad11cef Mon Sep 17 00:00:00 2001 From: NicklasHansen95 <70760445+NicklasHansen95@users.noreply.github.com> Date: Thu, 12 Dec 2024 21:43:46 +0100 Subject: [PATCH] Standardize Nano selection priority of Leg T1 and all T2 (#4006) Standardize the selection priority of Legion T1 and T2 Nano and Arm + Cor T2 Nano to be the same as the existing selection priority of Arm/Cor T1 Nano. --- luaui/Widgets/unit_smart_select.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luaui/Widgets/unit_smart_select.lua b/luaui/Widgets/unit_smart_select.lua index 17c911a49c3..bf0f45cec30 100644 --- a/luaui/Widgets/unit_smart_select.lua +++ b/luaui/Widgets/unit_smart_select.lua @@ -68,7 +68,7 @@ for udid, udef in pairs(UnitDefs) do ignoreUnits[udid] = true end - local isMobile = (udef.canMove and udef.speed > 0.000001) or (includeNanosAsMobile and (udef.name == "armnanotc" or udef.name == "cornanotc")) + local isMobile = not udef.isImmobile or (includeNanosAsMobile and (udef.isStaticBuilder and not udef.isFactory)) local builder = (udef.canReclaim and udef.reclaimSpeed > 0) or (udef.canResurrect and udef.resurrectSpeed > 0) or (udef.canRepair and udef.repairSpeed > 0) or (udef.buildOptions and udef.buildOptions[1]) local building = (isMobile == false) local combat = (not builder) and isMobile and (#udef.weapons > 0)