Fix a crash in soviet05
This commit is contained in:
@@ -144,7 +144,10 @@ end
|
|||||||
Tick = function()
|
Tick = function()
|
||||||
if Greece.HasNoRequiredUnits() and GoodGuy.HasNoRequiredUnits() then
|
if Greece.HasNoRequiredUnits() and GoodGuy.HasNoRequiredUnits() then
|
||||||
player.MarkCompletedObjective(KillAll)
|
player.MarkCompletedObjective(KillAll)
|
||||||
player.MarkCompletedObjective(HoldObjective)
|
|
||||||
|
if HoldObjective then
|
||||||
|
player.MarkCompletedObjective(HoldObjective)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if player.HasNoRequiredUnits() then
|
if player.HasNoRequiredUnits() then
|
||||||
@@ -226,6 +229,11 @@ WorldLoaded = function()
|
|||||||
|
|
||||||
RadarDome.GrantCondition("french")
|
RadarDome.GrantCondition("french")
|
||||||
Trigger.OnCapture(RadarDome, function()
|
Trigger.OnCapture(RadarDome, function()
|
||||||
|
if player.IsObjectiveCompleted(KillAll) then
|
||||||
|
player.MarkCompletedObjective(CaptureObjective)
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
HoldObjective = player.AddPrimaryObjective("Defend the Radar Dome.")
|
HoldObjective = player.AddPrimaryObjective("Defend the Radar Dome.")
|
||||||
player.MarkCompletedObjective(CaptureObjective)
|
player.MarkCompletedObjective(CaptureObjective)
|
||||||
Beacon.New(player, MCVDeploy.CenterPosition)
|
Beacon.New(player, MCVDeploy.CenterPosition)
|
||||||
|
|||||||
Reference in New Issue
Block a user