Port Infiltrate to the new Enter activity.

This commit is contained in:
Paul Chote
2019-01-31 22:18:01 +00:00
committed by Oliver Brakmann
parent e9c3216048
commit a17608a24e
3 changed files with 54 additions and 27 deletions

View File

@@ -37,7 +37,7 @@ namespace OpenRA.Mods.Cnc.Scripting
if (infiltrates == null)
throw new LuaException("{0} tried to infiltrate invalid target {1}!".F(Self, target));
Self.QueueActivity(new Infiltrate(Self, target, infiltrates));
Self.QueueActivity(new Infiltrate(Self, Target.FromActor(target), infiltrates));
}
}
}