#AUTOLASE

* Don't forget min threatlevel 0 on unit targets
This commit is contained in:
Applevangelist 2022-09-30 14:41:38 +02:00
parent 84c41aa554
commit a8a92c00fe

View File

@ -890,7 +890,7 @@ function AUTOLASE:onafterMonitor(From, Event, To)
if unit and unit:IsAlive() then
local threat = unit:GetThreatLevel()
local coord = unit:GetCoordinate()
if threat > 0 then
if threat >= self.minthreatlevel then
local unitname = unit:GetName()
-- prefer radar units
if unit:HasAttribute("RADAR_BAND1_FOR_ARM") or unit:HasAttribute("RADAR_BAND2_FOR_ARM") or unit:HasAttribute("Optical Tracker") then