Skip to content

Commit

Permalink
Fire at radar toggle for Widow. Fixes #3334.
Browse files Browse the repository at this point in the history
  • Loading branch information
GoogleFrog committed Nov 14, 2018
1 parent 24feb1b commit 918902f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/spiderantiheavy.lua
Expand Up @@ -153,6 +153,10 @@ function script.QueryWeapon(num)
return flare
end

function script.BlockShot(num, targetID)
return (targetID and GG.DontFireRadar_CheckBlock(unitID, targetID)) or false
end

function script.Killed(recentDamage, maxHealth)
local severity = recentDamage/maxHealth
if severity <= .25 then
Expand Down
1 change: 1 addition & 0 deletions units/spiderantiheavy.lua
Expand Up @@ -19,6 +19,7 @@ unitDef = {
corpse = [[DEAD]],

customParams = {
dontfireatradarcommand = '1',
},

explodeAs = [[BIG_UNITEX]],
Expand Down

0 comments on commit 918902f

Please sign in to comment.