From 11a0713e506227e7e52b2d7547b82e598a06295a Mon Sep 17 00:00:00 2001 From: MetalStormGhost Date: Sun, 24 Sep 2023 02:05:18 +0300 Subject: [PATCH] =?UTF-8?q?Pretense=20SEAD=20missions=20will=20now=20also?= =?UTF-8?q?=20target=20AAA.=20Also=20incorporates=20the=20fix=20to=20fullB?= =?UTF-8?q?uild():=20Dzsekeb=20=E2=80=94=2003/09/2023=2011:50=20add=20the?= =?UTF-8?q?=20highlighted=20line=20to=20the=20fullbuild=20function=20https?= =?UTF-8?q?://discord.com/channels/959044877470027848/1031459721313517578/?= =?UTF-8?q?1147815809075392604?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/plugins/pretense/pretense_compiled.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/plugins/pretense/pretense_compiled.lua b/resources/plugins/pretense/pretense_compiled.lua index 11a3a8b1..a3aaf78c 100644 --- a/resources/plugins/pretense/pretense_compiled.lua +++ b/resources/plugins/pretense/pretense_compiled.lua @@ -1221,7 +1221,7 @@ do if v.type == 'defense' and v.side ~= group:getCoalition() then local gr = Group.getByName(v.name) for _,unit in ipairs(gr:getUnits()) do - if unit:hasAttribute('SAM SR') or unit:hasAttribute('SAM TR') then + if unit:hasAttribute('SAM SR') or unit:hasAttribute('SAM TR') or unit:hasAttribute('AAA') or unit:hasAttribute('IR Guided SAM') or unit:hasAttribute('SAM LL') then table.insert(viable, unit:getName()) end end @@ -1235,7 +1235,7 @@ do { id = 'EngageTargets', params = { - targetTypes = {'SAM SR', 'SAM TR'} + targetTypes = {'SAM SR', 'SAM TR', 'AAA', 'IR Guided SAM', 'SAM LL'} } } } @@ -4064,6 +4064,8 @@ do end function ZoneCommand:fullBuild(useCost) + if self.side ~= 1 and self.side ~= 2 then return end + for i,v in ipairs(self.upgrades[self.side]) do if useCost then local cost = v.cost * useCost