Skip to content

Commit 0dd031a

Browse files
committed
Fix cloaker attack AoE.
1 parent dc2719d commit 0dd031a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

LuaUI/Widgets/gui_attack_aoe.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ local function CalculateVlaunchImpact(info, fx, fy, fz, tx, ty, tz)
826826
local horDist = math.sqrt((fx - tx)*(fx - tx) + (fz - tz)*(fz - tz))
827827
local vertDist = ty - fy
828828

829-
if info.range + 10 < horDist then
829+
if info.range + 10 < horDist or horDist < 100 then
830830
return false
831831
end
832832

@@ -974,7 +974,7 @@ local function drawForUnit(unitID, tx, ty, tz, targetIsGround, cmd, info, rangeR
974974
end
975975

976976
local weaponType = info.type
977-
if info.vlaunch then
977+
if info.vlaunch and info.circleMode ~= "cloaker" then
978978
local hx, hy, hz = CalculateVlaunchImpact(info, fx, fy, fz, tx, ty, tz)
979979
if hx then
980980
DrawVlaunchImpact(hx, hy, hz, tx, ty, tz)

0 commit comments

Comments
 (0)