From 6820774266773a20f0735bd3b398a6c14543693c Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Thu, 1 Sep 2022 08:03:53 +0200 Subject: [PATCH] GROUP - added optical tracker to ID SAMs --- Moose Development/Moose/Wrapper/Group.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Moose Development/Moose/Wrapper/Group.lua b/Moose Development/Moose/Wrapper/Group.lua index e282f080f..ebb8d9228 100644 --- a/Moose Development/Moose/Wrapper/Group.lua +++ b/Moose Development/Moose/Wrapper/Group.lua @@ -2373,14 +2373,15 @@ function GROUP:GetAttribute() --- Ground --- -------------- -- Ground - local apc=self:HasAttribute("Infantry carriers") + local apc=self:HasAttribute("APC") local truck=self:HasAttribute("Trucks") and self:GetCategory()==Group.Category.GROUND local infantry=self:HasAttribute("Infantry") local artillery=self:HasAttribute("Artillery") local tank=self:HasAttribute("Old Tanks") or self:HasAttribute("Modern Tanks") - local aaa=self:HasAttribute("AAA") + local aaa=self:HasAttribute("AAA") and (not self:HasAttribute("SAM elements")) local ewr=self:HasAttribute("EWR") - local sam=self:HasAttribute("SAM elements") and (not self:HasAttribute("AAA")) + local ifv=self:HasAttribute("IFV") + local sam=self:HasAttribute("SAM elements") or self:HasAttribute("Optical Tracker") -- Train local train=self:GetCategory()==Group.Category.TRAIN