Port CaptureActor to the new Enter activity.

This commit is contained in:
Paul Chote
2019-01-31 20:36:38 +00:00
committed by Oliver Brakmann
parent c1e8bbfc58
commit e9c3216048
3 changed files with 45 additions and 39 deletions

View File

@@ -35,7 +35,7 @@ namespace OpenRA.Mods.Common.Scripting
if (targetManager == null || !targetManager.CanBeTargetedBy(target, Self, captureManager))
throw new LuaException("Actor '{0}' cannot capture actor '{1}'!".F(Self, target));
Self.QueueActivity(new CaptureActor(Self, target));
Self.QueueActivity(new CaptureActor(Self, Target.FromActor(target)));
}
}
}