Skip to content

Commit 17779be

Browse files
committed
Old fallback just in case.
1 parent 26d8586 commit 17779be

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

LuaUI/Widgets/gui_attack_aoe.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,10 @@ local function GetMouseTargetPosition()
156156
if (mouseTargetType == "ground") then
157157
return mouseTarget[1], mouseTarget[2], mouseTarget[3], true
158158
elseif (mouseTargetType == "unit") then
159-
local _,_,_, ax, ay, az = GetUnitPosition(mouseTarget, false, true)
159+
local ux, uy, uz, ax, ay, az = GetUnitPosition(mouseTarget, false, true)
160+
if not ax then
161+
return ux, uy, uz
162+
end
160163
return ax, ay, az
161164
elseif (mouseTargetType == "feature") then
162165
local _, coords = TraceScreenRay(mx, my, true, true, false, true)

0 commit comments

Comments
 (0)