Skip to content

Commit

Permalink
dgun stall assist: fix for when legion isnt enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruwetuin committed Aug 28, 2024
1 parent 6119a89 commit 07f1fd5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions luaui/Widgets/unit_dgun_stall_assist.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ local isFactory = {} -- isFactory[uDefID] = true / nil

local gameStarted

local stallIds = {UnitDefNames['armcom'].id, UnitDefNames['corcom'].id, UnitDefNames['legcom'].id}
local stallIds = {UnitDefNames['armcom'].id, UnitDefNames['corcom'].id, UnitDefNames['legcom'] and UnitDefNames['legcom'].id}


----------------------------------------------------------------
-- Speedups
Expand Down Expand Up @@ -95,7 +96,7 @@ function widget:Update(dt)
stallUnitSelected = true
end
end

if (stallUnitSelected) then
watchTime = watchForTime
end
Expand Down

0 comments on commit 07f1fd5

Please sign in to comment.