Replace deprecated API usage.

This commit is contained in:
Paul Chote
2020-06-10 22:14:52 +01:00
committed by reaperrr
parent 27602a4a97
commit e5a1a8a706
36 changed files with 61 additions and 61 deletions

View File

@@ -189,7 +189,7 @@ WTransWaves = function()
end
Paradrop = function()
local aircraft = PowerProxy.ActivateParatroopers(Utils.Random(ParadropLZs))
local aircraft = PowerProxy.TargetParatroopers(Utils.Random(ParadropLZs))
Utils.Do(aircraft, function(a)
Trigger.OnPassengerExited(a, function(t, p)
IdleHunt(p)
@@ -218,7 +218,7 @@ SendParabombs = function()
end)
if #targets > 0 then
airfield.SendAirstrike(Utils.Random(targets).CenterPosition, true, 0)
airfield.TargetAirstrike(Utils.Random(targets).CenterPosition)
end
Trigger.AfterDelay(DateTime.Minutes(BombDelays), SendParabombs)

View File

@@ -90,7 +90,7 @@ DefendChronosphereCompleted = function()
local cells = Utils.ExpandFootprint({ ChronoshiftLocation.Location }, false)
local units = { }
for i = 1, #cells do
local unit = Actor.Create("2tnk", true, { Owner = greece, Facing = 0 })
local unit = Actor.Create("2tnk", true, { Owner = greece, Facing = Angle.North })
units[unit] = cells[i]
end
Chronosphere.Chronoshift(units)