Port scripts to new api.

This commit is contained in:
Paul Chote
2016-12-02 15:55:37 +00:00
parent ea7ad2e337
commit f4f2030b29
5 changed files with 23 additions and 9 deletions

View File

@@ -113,8 +113,8 @@ end
SetupAlliedUnits = function()
Utils.Do(Map.NamedActors, function(a)
if a.Owner == allies and a.HasProperty("AcceptsUpgrade") and a.AcceptsUpgrade("unkillable") then
a.GrantUpgrade("unkillable")
if a.Owner == allies and a.HasProperty("AcceptsCondition") and a.AcceptsCondition("unkillable") then
a.GrantCondition("unkillable")
a.Stance = "Defend"
end
end)