Skip to content

Commit

Permalink
Upvalue GetCommandQueue
Browse files Browse the repository at this point in the history
  • Loading branch information
lL1l1 committed Dec 11, 2024
1 parent 4798117 commit 47b8b1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/shield.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ local UnitSetScriptBit = _G.moho.unit_methods.SetScriptBit
local UnitIsUnitState = _G.moho.unit_methods.IsUnitState
local UnitRevertCollisionShape = _G.moho.unit_methods.RevertCollisionShape
local UnitGetGuards = _G.moho.unit_methods.GetGuards
local UnitGetCommandQueue = _G.moho.unit_methods.GetCommandQueue

local IEffectOffsetEmitter = _G.moho.IEffect.OffsetEmitter

Expand Down Expand Up @@ -591,7 +592,7 @@ Shield = ClassShield(moho.shield_methods, Entity) {
if not TableEmpty(guards) then
-- filter out guards with something queued after the shield assist order, as to not delete clear their queue
for i, guard in guards do
if TableGetn(guard:GetCommandQueue()) >= 2 then
if TableGetn(UnitGetCommandQueue(guard)) >= 2 then
guards[i] = nil
end
end
Expand Down

0 comments on commit 47b8b1f

Please sign in to comment.