mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
UNIT - added optical tracker to HasSEAD()
This commit is contained in:
parent
15dff87200
commit
5bacea8b50
@ -830,7 +830,9 @@ function UNIT:HasSEAD()
|
|||||||
|
|
||||||
local HasSEAD = false
|
local HasSEAD = false
|
||||||
if UnitSEADAttributes["RADAR_BAND1_FOR_ARM"] and UnitSEADAttributes["RADAR_BAND1_FOR_ARM"] == true or
|
if UnitSEADAttributes["RADAR_BAND1_FOR_ARM"] and UnitSEADAttributes["RADAR_BAND1_FOR_ARM"] == true or
|
||||||
UnitSEADAttributes["RADAR_BAND2_FOR_ARM"] and UnitSEADAttributes["RADAR_BAND2_FOR_ARM"] == true then
|
UnitSEADAttributes["RADAR_BAND2_FOR_ARM"] and UnitSEADAttributes["RADAR_BAND2_FOR_ARM"] == true or
|
||||||
|
UnitSEADAttributes["Optical Tracker"] and UnitSEADAttributes["Optical Tracker"] == true
|
||||||
|
then
|
||||||
HasSEAD = true
|
HasSEAD = true
|
||||||
end
|
end
|
||||||
return HasSEAD
|
return HasSEAD
|
||||||
@ -1067,7 +1069,7 @@ function UNIT:GetThreatLevel()
|
|||||||
if Descriptor then
|
if Descriptor then
|
||||||
|
|
||||||
local Attributes = Descriptor.attributes
|
local Attributes = Descriptor.attributes
|
||||||
|
|
||||||
if self:IsGround() then
|
if self:IsGround() then
|
||||||
|
|
||||||
local ThreatLevels = {
|
local ThreatLevels = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user