Merge pull request #7839 from obrakmann/fix7836_gdi05a_crash

Fix issues in gdi05a
This commit is contained in:
Pavel Penev
2015-04-04 13:50:57 -07:00
2 changed files with 86 additions and 73 deletions

View File

@@ -72,6 +72,7 @@ Attack = function()
local path = Utils.Random(AttackPaths) local path = Utils.Random(AttackPaths)
Build(types[1], types[2], function(units) Build(types[1], types[2], function(units)
Utils.Do(units, function(unit) Utils.Do(units, function(unit)
if unit.Owner ~= nod then return end
unit.Patrol(path, false) unit.Patrol(path, false)
Trigger.OnIdle(unit, unit.Hunt) Trigger.OnIdle(unit, unit.Hunt)
end) end)
@@ -83,6 +84,7 @@ end
Grd1Action = function() Grd1Action = function()
Build(Airfield, Grd1UnitTypes, function(units) Build(Airfield, Grd1UnitTypes, function(units)
Utils.Do(units, function(unit) Utils.Do(units, function(unit)
if unit.Owner ~= nod then return end
Trigger.OnKilled(unit, function() Trigger.OnKilled(unit, function()
Trigger.AfterDelay(Grd1Delay[Map.Difficulty], Grd1Action) Trigger.AfterDelay(Grd1Delay[Map.Difficulty], Grd1Action)
end) end)
@@ -94,6 +96,7 @@ end
Grd2Action = function() Grd2Action = function()
Build(Airfield, Grd2UnitTypes, function(units) Build(Airfield, Grd2UnitTypes, function(units)
Utils.Do(units, function(unit) Utils.Do(units, function(unit)
if unit.Owner ~= nod then return end
unit.Patrol(Grd2Path, true, DateTime.Seconds(5)) unit.Patrol(Grd2Path, true, DateTime.Seconds(5))
end) end)
end) end)

View File

@@ -75,223 +75,223 @@ Players:
Actors: Actors:
Actor0: sbag Actor0: sbag
Location: 53,59 Location: 53,59
Owner: Neutral Owner: GDI
Actor1: sbag Actor1: sbag
Location: 52,59 Location: 52,59
Owner: Neutral Owner: GDI
Actor2: sbag Actor2: sbag
Location: 51,59 Location: 51,59
Owner: Neutral Owner: GDI
Actor3: sbag Actor3: sbag
Location: 50,59 Location: 50,59
Owner: Neutral Owner: GDI
Actor4: sbag Actor4: sbag
Location: 49,59 Location: 49,59
Owner: Neutral Owner: GDI
Actor5: sbag Actor5: sbag
Location: 45,59 Location: 45,59
Owner: Neutral Owner: GDI
Actor6: sbag Actor6: sbag
Location: 44,59 Location: 44,59
Owner: Neutral Owner: GDI
Actor7: sbag Actor7: sbag
Location: 43,59 Location: 43,59
Owner: Neutral Owner: GDI
Actor8: sbag Actor8: sbag
Location: 42,59 Location: 42,59
Owner: Neutral Owner: GDI
Actor9: sbag Actor9: sbag
Location: 41,59 Location: 41,59
Owner: Neutral Owner: GDI
Actor10: sbag Actor10: sbag
Location: 41,57 Location: 41,57
Owner: Neutral Owner: GDI
Actor11: sbag Actor11: sbag
Location: 41,56 Location: 41,56
Owner: Neutral Owner: GDI
Actor12: sbag Actor12: sbag
Location: 41,53 Location: 41,53
Owner: Neutral Owner: GDI
Actor13: sbag Actor13: sbag
Location: 41,52 Location: 41,52
Owner: Neutral Owner: GDI
Actor14: sbag Actor14: sbag
Location: 44,51 Location: 44,51
Owner: Neutral Owner: GDI
Actor15: sbag Actor15: sbag
Location: 43,51 Location: 43,51
Owner: Neutral Owner: GDI
Actor16: sbag Actor16: sbag
Location: 42,51 Location: 42,51
Owner: Neutral Owner: GDI
Actor17: sbag Actor17: sbag
Location: 41,51 Location: 41,51
Owner: Neutral Owner: GDI
Actor18: sbag Actor18: sbag
Location: 54,50 Location: 54,50
Owner: Neutral Owner: GDI
Actor19: sbag Actor19: sbag
Location: 53,50 Location: 53,50
Owner: Neutral Owner: GDI
Actor20: sbag Actor20: sbag
Location: 52,50 Location: 52,50
Owner: Neutral Owner: GDI
Actor21: sbag Actor21: sbag
Location: 46,50 Location: 46,50
Owner: Neutral Owner: GDI
Actor22: sbag Actor22: sbag
Location: 45,50 Location: 45,50
Owner: Neutral Owner: GDI
Actor23: sbag Actor23: sbag
Location: 44,50 Location: 44,50
Owner: Neutral Owner: GDI
Actor24: sbag Actor24: sbag
Location: 15,31 Location: 15,31
Owner: Neutral Owner: Nod
Actor25: sbag Actor25: sbag
Location: 14,31 Location: 14,31
Owner: Neutral Owner: Nod
Actor26: sbag Actor26: sbag
Location: 13,31 Location: 13,31
Owner: Neutral Owner: Nod
Actor27: sbag Actor27: sbag
Location: 12,31 Location: 12,31
Owner: Neutral Owner: Nod
Actor28: sbag Actor28: sbag
Location: 8,31 Location: 8,31
Owner: Neutral Owner: Nod
Actor29: sbag Actor29: sbag
Location: 15,30 Location: 15,30
Owner: Neutral Owner: Nod
Actor30: sbag Actor30: sbag
Location: 8,30 Location: 8,30
Owner: Neutral Owner: Nod
Actor31: sbag Actor31: sbag
Location: 25,29 Location: 25,29
Owner: Neutral Owner: Nod
Actor32: sbag Actor32: sbag
Location: 24,29 Location: 24,29
Owner: Neutral Owner: Nod
Actor33: sbag Actor33: sbag
Location: 23,29 Location: 23,29
Owner: Neutral Owner: Nod
Actor34: sbag Actor34: sbag
Location: 22,29 Location: 22,29
Owner: Neutral Owner: Nod
Actor35: sbag Actor35: sbag
Location: 21,29 Location: 21,29
Owner: Neutral Owner: Nod
Actor36: sbag Actor36: sbag
Location: 20,29 Location: 20,29
Owner: Neutral Owner: Nod
Actor37: sbag Actor37: sbag
Location: 19,29 Location: 19,29
Owner: Neutral Owner: Nod
Actor38: sbag Actor38: sbag
Location: 18,29 Location: 18,29
Owner: Neutral Owner: Nod
Actor39: sbag Actor39: sbag
Location: 17,29 Location: 17,29
Owner: Neutral Owner: Nod
Actor40: sbag Actor40: sbag
Location: 16,29 Location: 16,29
Owner: Neutral Owner: Nod
Actor41: sbag Actor41: sbag
Location: 15,29 Location: 15,29
Owner: Neutral Owner: Nod
Actor42: sbag Actor42: sbag
Location: 8,29 Location: 8,29
Owner: Neutral Owner: Nod
Actor43: sbag Actor43: sbag
Location: 25,28 Location: 25,28
Owner: Neutral Owner: Nod
Actor44: sbag Actor44: sbag
Location: 8,28 Location: 8,28
Owner: Neutral Owner: Nod
Actor45: sbag Actor45: sbag
Location: 25,27 Location: 25,27
Owner: Neutral Owner: Nod
Actor46: sbag Actor46: sbag
Location: 8,27 Location: 8,27
Owner: Neutral Owner: Nod
Actor47: sbag Actor47: sbag
Location: 8,26 Location: 8,26
Owner: Neutral Owner: Nod
Actor48: sbag Actor48: sbag
Location: 8,25 Location: 8,25
Owner: Neutral Owner: Nod
Actor49: sbag Actor49: sbag
Location: 25,24 Location: 25,24
Owner: Neutral Owner: Nod
Actor50: sbag Actor50: sbag
Location: 8,24 Location: 8,24
Owner: Neutral Owner: Nod
Actor51: sbag Actor51: sbag
Location: 25,23 Location: 25,23
Owner: Neutral Owner: Nod
Actor52: sbag Actor52: sbag
Location: 8,23 Location: 8,23
Owner: Neutral Owner: Nod
Actor53: sbag Actor53: sbag
Location: 25,22 Location: 25,22
Owner: Neutral Owner: Nod
Actor54: sbag Actor54: sbag
Location: 8,22 Location: 8,22
Owner: Neutral Owner: Nod
Actor55: sbag Actor55: sbag
Location: 25,21 Location: 25,21
Owner: Neutral Owner: Nod
Actor56: sbag Actor56: sbag
Location: 24,21 Location: 24,21
Owner: Neutral Owner: Nod
Actor57: sbag Actor57: sbag
Location: 23,21 Location: 23,21
Owner: Neutral Owner: Nod
Actor58: sbag Actor58: sbag
Location: 22,21 Location: 22,21
Owner: Neutral Owner: Nod
Actor59: sbag Actor59: sbag
Location: 21,21 Location: 21,21
Owner: Neutral Owner: Nod
Actor60: sbag Actor60: sbag
Location: 20,21 Location: 20,21
Owner: Neutral Owner: Nod
Actor61: sbag Actor61: sbag
Location: 19,21 Location: 19,21
Owner: Neutral Owner: Nod
Actor62: sbag Actor62: sbag
Location: 18,21 Location: 18,21
Owner: Neutral Owner: Nod
Actor63: sbag Actor63: sbag
Location: 17,21 Location: 17,21
Owner: Neutral Owner: Nod
Actor64: sbag Actor64: sbag
Location: 16,21 Location: 16,21
Owner: Neutral Owner: Nod
Actor65: sbag Actor65: sbag
Location: 15,21 Location: 15,21
Owner: Neutral Owner: Nod
Actor66: sbag Actor66: sbag
Location: 14,21 Location: 14,21
Owner: Neutral Owner: Nod
Actor67: sbag Actor67: sbag
Location: 13,21 Location: 13,21
Owner: Neutral Owner: Nod
Actor68: sbag Actor68: sbag
Location: 12,21 Location: 12,21
Owner: Neutral Owner: Nod
Actor69: sbag Actor69: sbag
Location: 11,21 Location: 11,21
Owner: Neutral Owner: Nod
Actor70: sbag Actor70: sbag
Location: 10,21 Location: 10,21
Owner: Neutral Owner: Nod
Actor71: sbag Actor71: sbag
Location: 9,21 Location: 9,21
Owner: Neutral Owner: Nod
Actor72: sbag Actor72: sbag
Location: 8,21 Location: 8,21
Owner: Neutral Owner: Nod
Actor73: t01 Actor73: t01
Location: 12,38 Location: 12,38
Owner: Neutral Owner: Neutral
@@ -802,6 +802,7 @@ Rules:
MissionObjectives: MissionObjectives:
EarlyGameOver: true EarlyGameOver: true
EnemyWatcher: EnemyWatcher:
NotificationInterval: 25
^Vehicle: ^Vehicle:
Tooltip: Tooltip:
GenericVisibility: Enemy GenericVisibility: Enemy
@@ -847,6 +848,9 @@ Rules:
E3: E3:
Buildable: Buildable:
Queue: Infantry.Nod Queue: Infantry.Nod
E4:
Buildable:
Prerequisites: ~disabled
E5: E5:
Buildable: Buildable:
Prerequisites: ~disabled Prerequisites: ~disabled
@@ -876,6 +880,12 @@ Rules:
ARTY: ARTY:
Buildable: Buildable:
Prerequisites: ~disabled Prerequisites: ~disabled
MLRS:
Buildable:
Prerequisites: ~disabled
FTNK:
Buildable:
Prerequisites: ~disabled
STNK: STNK:
Buildable: Buildable:
Prerequisites: ~disabled Prerequisites: ~disabled