Add an upgrade rule

This commit is contained in:
abcdefg30
2016-10-15 18:14:24 +02:00
committed by reaperrr
parent 5e923ff091
commit 880f90345e
5 changed files with 4 additions and 4 deletions

View File

@@ -578,6 +578,10 @@ namespace OpenRA.Mods.Common.UtilityCommands
if (node.Key.StartsWith("UncloakOn", StringComparison.Ordinal))
node.Value.Value = node.Value.Value.Replace("Damage", "Damage, Heal, SelfHeal");
// Removed dead ActorGroupProxy trait
if (engineVersion < 20170318)
node.Value.Nodes.RemoveAll(n => n.Key == "ActorGroupProxy");
UpgradeActorRules(modData, engineVersion, ref node.Value.Nodes, node, depth + 1);
}