diff --git a/luaui/Widgets/unit_smart_select.lua b/luaui/Widgets/unit_smart_select.lua index 17c911a49c..bf0f45cec3 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)