Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions LuaRules/Gadgets/unit_target_on_the_move.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ local setTargetSpeedMult = {}
for i = 1, #UnitDefs do
local ud = UnitDefs[i]
weaponCounts[i] = (ud.weapons and #ud.weapons)
if ((not (ud.canFly and ((ud.isBomber or ud.isBomberAirUnit) and not ud.customParams.can_set_target))) and
ud.canAttack and ud.canMove and ud.maxWeaponRange and ud.maxWeaponRange > 0) or ud.isFactory then
if (ud.maxWeaponRange and ud.maxWeaponRange > 0) or ud.isFactory then
if getMovetype(ud) == 0 then
waitWaitUnits[i] = true
end
Expand Down
3 changes: 1 addition & 2 deletions LuaUI/Widgets/unit_showallcommands_2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ local gaiaTeamID = Spring.GetGaiaTeamID()
local setTargetUnitDefIDs = {}
for i = 1, #UnitDefs do
local ud = UnitDefs[i]
if ((not (ud.canFly and ((ud.isBomber or ud.isBomberAirUnit) and not ud.customParams.can_set_target))) and
ud.canAttack and ud.canMove and ud.maxWeaponRange and ud.maxWeaponRange > 0) or ud.isFactory then
if (ud.maxWeaponRange and ud.maxWeaponRange > 0) or ud.isFactory then
setTargetUnitDefIDs[i] = true
end
end
Expand Down