Skip to content

Commit

Permalink
Fix hotbuild megalith selection v2
Browse files Browse the repository at this point in the history
  • Loading branch information
lL1l1 committed Dec 8, 2024
1 parent 1738bb1 commit e167589
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lua/keymap/hotbuild.lua
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,7 @@ function buildAction(name)
local selection = GetSelectedUnits()
if selection then
-- If current selection is engineer or commander or megalith
if not table.empty(EntityCategoryFilterDown(categories.ENGINEER - categories.STRUCTURE, selection)) or
not
table.empty(EntityCategoryFilterDown(categories.FACTORY * categories.EXPERIMENTAL * categories.CYBRAN,
selection)) then
if not table.empty(EntityCategoryFilterDown(categories.ENGINEER - categories.STRUCTURE + categories.xrl0403, selection)) then
buildActionBuilding(name, modifier)
else -- Buildqueue or normal applying all the command
buildActionUnit(name, modifier)
Expand Down

0 comments on commit e167589

Please sign in to comment.