Port Demolish to the new Enter activity.

This commit is contained in:
Paul Chote
2019-02-01 09:48:25 +00:00
committed by Oliver Brakmann
parent a17608a24e
commit 167371d540
3 changed files with 47 additions and 24 deletions

View File

@@ -31,7 +31,7 @@ namespace OpenRA.Mods.Common.Scripting
[Desc("Demolish the target actor.")]
public void Demolish(Actor target)
{
Self.QueueActivity(new Demolish(Self, target, info.EnterBehaviour, info.DetonationDelay,
Self.QueueActivity(new Demolish(Self, Target.FromActor(target), info.EnterBehaviour, info.DetonationDelay,
info.Flashes, info.FlashesDelay, info.FlashInterval));
}
}