Skip to content
Browse files

Use implicit unit target for Raven dive, for cases in which no direct…

… attack command exists. Fixes
  • Loading branch information...
GoogleFrog committed Mar 12, 2019
1 parent ee9be37 commit 601953f96bbcb8cd165a07b283aa7eb1ec142ed4
Showing with 7 additions and 0 deletions.
  1. +7 −0 LuaRules/Gadgets/unit_bomber_dive.lua
@@ -83,6 +83,13 @@ local function GetAttackTarget(unitID)
return targetID, not ud.isImmobile

local targetType, isUser, targetID = Spring.GetUnitWeaponTarget(unitID, 3)
if targetType <= 1 and targetID and Spring.ValidUnitID(targetID) then
local unitDefID = Spring.GetUnitDefID(targetID)
local ud = UnitDefs[unitDefID]
return targetID, not ud.isImmobile

local function GetCollisionDistance(unitID, targetID)

0 comments on commit 601953f

Please sign in to comment.
You can’t perform that action at this time.