mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
#AUTOLASE
* Don't forget min threatlevel 0 on unit targets
This commit is contained in:
parent
84c41aa554
commit
a8a92c00fe
@ -890,7 +890,7 @@ function AUTOLASE:onafterMonitor(From, Event, To)
|
|||||||
if unit and unit:IsAlive() then
|
if unit and unit:IsAlive() then
|
||||||
local threat = unit:GetThreatLevel()
|
local threat = unit:GetThreatLevel()
|
||||||
local coord = unit:GetCoordinate()
|
local coord = unit:GetCoordinate()
|
||||||
if threat > 0 then
|
if threat >= self.minthreatlevel then
|
||||||
local unitname = unit:GetName()
|
local unitname = unit:GetName()
|
||||||
-- prefer radar units
|
-- prefer radar units
|
||||||
if unit:HasAttribute("RADAR_BAND1_FOR_ARM") or unit:HasAttribute("RADAR_BAND2_FOR_ARM") or unit:HasAttribute("Optical Tracker") then
|
if unit:HasAttribute("RADAR_BAND1_FOR_ARM") or unit:HasAttribute("RADAR_BAND2_FOR_ARM") or unit:HasAttribute("Optical Tracker") then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user