allies-08ab: Remove tech center as bomber target
This commit is contained in:
committed by
Matthias Mailänder
parent
f325e9c7b9
commit
c2c56c6374
@@ -167,6 +167,22 @@ Paradrop = function()
|
||||
Trigger.AfterDelay(DateTime.Minutes(ParadropDelays), Paradrop)
|
||||
end
|
||||
|
||||
GetBomberTargets = function()
|
||||
if Difficulty ~= "hard" then
|
||||
return Greece.GetActorsByTypes({ "apwr", "powr" })
|
||||
end
|
||||
|
||||
local targets = Utils.Where(Greece.GetActors(), function(actor)
|
||||
return
|
||||
actor.HasProperty("Sell") and
|
||||
actor.Type ~= "brik" and
|
||||
actor.Type ~= "sbag" or
|
||||
actor.Type == "pdox"
|
||||
end)
|
||||
|
||||
return targets
|
||||
end
|
||||
|
||||
SendParabombs = function()
|
||||
local airfield = Airfield1
|
||||
if Airfield1.IsDead or Airfield1.Owner ~= USSR then
|
||||
@@ -177,14 +193,7 @@ SendParabombs = function()
|
||||
airfield = Airfield2
|
||||
end
|
||||
|
||||
local targets = Utils.Where(Greece.GetActors(), function(actor)
|
||||
return
|
||||
actor.HasProperty("Sell") and
|
||||
actor.Type ~= "brik" and
|
||||
actor.Type ~= "sbag" or
|
||||
actor.Type == "pdox" or
|
||||
actor.Type == "atek"
|
||||
end)
|
||||
local targets = GetBomberTargets()
|
||||
|
||||
if #targets > 0 then
|
||||
airfield.TargetAirstrike(Utils.Random(targets).CenterPosition)
|
||||
|
||||
@@ -167,6 +167,22 @@ Paradrop = function()
|
||||
Trigger.AfterDelay(DateTime.Minutes(ParadropDelays), Paradrop)
|
||||
end
|
||||
|
||||
GetBomberTargets = function()
|
||||
if Difficulty ~= "hard" then
|
||||
return Greece.GetActorsByTypes({ "apwr", "powr" })
|
||||
end
|
||||
|
||||
local targets = Utils.Where(Greece.GetActors(), function(actor)
|
||||
return
|
||||
actor.HasProperty("Sell") and
|
||||
actor.Type ~= "brik" and
|
||||
actor.Type ~= "sbag" or
|
||||
actor.Type == "pdox"
|
||||
end)
|
||||
|
||||
return targets
|
||||
end
|
||||
|
||||
SendParabombs = function()
|
||||
local airfield = Airfield1
|
||||
if Airfield1.IsDead or Airfield1.Owner ~= USSR then
|
||||
@@ -177,14 +193,7 @@ SendParabombs = function()
|
||||
airfield = Airfield2
|
||||
end
|
||||
|
||||
local targets = Utils.Where(Greece.GetActors(), function(actor)
|
||||
return
|
||||
actor.HasProperty("Sell") and
|
||||
actor.Type ~= "brik" and
|
||||
actor.Type ~= "sbag" or
|
||||
actor.Type == "pdox" or
|
||||
actor.Type == "atek"
|
||||
end)
|
||||
local targets = GetBomberTargets()
|
||||
|
||||
if #targets > 0 then
|
||||
airfield.TargetAirstrike(Utils.Random(targets).CenterPosition)
|
||||
|
||||
Reference in New Issue
Block a user