Skip to content

Commit

Permalink
Standardize Nano selection priority of Leg T1 and all T2 (#4006)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
NicklasHansen95 authored Dec 12, 2024
1 parent 0aba032 commit 3da0baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion luaui/Widgets/unit_smart_select.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3da0baf

Please sign in to comment.