#SHORAD tweak

This commit is contained in:
Applevangelist 2025-03-16 13:58:58 +01:00
parent 618a8744a2
commit 5ca3e3b2b8
2 changed files with 2 additions and 2 deletions

View File

@ -1375,7 +1375,7 @@ function EVENT:onEvent( Event )
Event.IniDCSUnitName = Event.IniDCSUnit.getName and Event.IniDCSUnit:getName() or "Scenery no name "..math.random(1,20000)
Event.IniUnitName = Event.IniDCSUnitName
Event.IniUnit = SCENERY:Register( Event.IniDCSUnitName, Event.initiator )
Event.IniCategory = Event.IniDCSUnit:getDesc().category
Event.IniCategory = Event.IniDCSUnit.getDesc and Event.IniDCSUnit:getDesc().category
Event.IniTypeName = Event.initiator:isExist() and Event.IniDCSUnit:getTypeName() or "SCENERY"
elseif Event.IniObjectCategory == Object.Category.BASE then

View File

@ -543,7 +543,7 @@ do
self:__ShootAndScoot(1,_group)
end
elseif _group:IsAnyInZone(targetzone) then
elseif _group:IsAnyInZone(targetzone) or groupname == TargetGroup then
-- shot at a group we protect
local text = string.format("Waking up SHORAD %s", _group:GetName())
self:T(text)