Ignore Silos for SW Targeting on Harkonnen Missions

Also Defences for Saboteur
This commit is contained in:
Mustafa Alperen Seki
2017-12-31 10:11:04 +03:00
committed by ltem
parent 8fe45cb894
commit 2f6bbd906b
4 changed files with 9 additions and 2 deletions

View File

@@ -158,6 +158,7 @@ SendAirStrike = function()
actor.Type ~= "wall" and
actor.Type ~= "medium_gun_turret" and
actor.Type ~= "large_gun_turret" and
actor.Type ~= "silo" and
actor.Type ~= "wind_trap"
end)

View File

@@ -128,6 +128,7 @@ SendAirStrike = function()
actor.Type ~= "wall" and
actor.Type ~= "medium_gun_turret" and
actor.Type ~= "large_gun_turret" and
actor.Type ~= "silo" and
actor.Type ~= "wind_trap"
end)
@@ -141,8 +142,11 @@ end
GetSaboteurTargets = function(player)
return Utils.Where(player.GetActors(), function(actor)
return
actor.HasProperty("Sell")
and actor.Type ~= "wall"
actor.HasProperty("Sell") and
actor.Type ~= "wall" and
actor.Type ~= "medium_gun_turret" and
actor.Type ~= "large_gun_turret" and
actor.Type ~= "silo"
end)
end

View File

@@ -173,6 +173,7 @@ SendAirStrike = function()
actor.Type ~= "wall" and
actor.Type ~= "medium_gun_turret" and
actor.Type ~= "large_gun_turret" and
actor.Type ~= "silo" and
actor.Type ~= "wind_trap"
end)

View File

@@ -179,6 +179,7 @@ SendAirStrike = function()
actor.Type ~= "wall" and
actor.Type ~= "medium_gun_turret" and
actor.Type ~= "large_gun_turret" and
actor.Type ~= "silo" and
actor.Type ~= "wind_trap"
end)