Add World parameter to Target.FromCell.
This commit is contained in:
@@ -298,7 +298,7 @@ namespace OpenRA.Mods.RA.Scripting
|
||||
[LuaGlobal]
|
||||
public void FlyAttackCell(Actor actor, CPos location)
|
||||
{
|
||||
actor.QueueActivity(new FlyAttack(Target.FromCell(location)));
|
||||
actor.QueueActivity(new FlyAttack(Target.FromCell(actor.World, location)));
|
||||
}
|
||||
|
||||
[LuaGlobal]
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace OpenRA.Mods.RA.Scripting
|
||||
public void Paradrop(CPos cell)
|
||||
{
|
||||
paradrop.SetLZ(cell);
|
||||
self.QueueActivity(new FlyAttack(Target.FromCell(cell)));
|
||||
self.QueueActivity(new FlyAttack(Target.FromCell(self.World, cell)));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user