Add self argument to Move constructors.

This commit is contained in:
Paul Chote
2014-10-04 13:35:14 +13:00
parent 772994c1c4
commit 34eb634779
5 changed files with 50 additions and 36 deletions

View File

@@ -324,9 +324,9 @@ namespace OpenRA.Mods.RA.Scripting
public void AttackMove(Actor actor, CPos location, double nearEnough)
{
if (actor.HasTrait<AttackMove>())
actor.QueueActivity(new AttackMove.AttackMoveActivity(actor, new Move.Move(location, (int)nearEnough)));
actor.QueueActivity(new AttackMove.AttackMoveActivity(actor, new Move.Move(actor, location, (int)nearEnough)));
else
actor.QueueActivity(new Move.Move(location, (int)nearEnough));
actor.QueueActivity(new Move.Move(actor, location, (int)nearEnough));
}
[LuaGlobal]