Add following to IMove.

This commit is contained in:
Paul Chote
2014-01-20 10:59:24 +13:00
parent 9147e1f778
commit 1759d73ed7
8 changed files with 55 additions and 4 deletions

View File

@@ -30,8 +30,7 @@ namespace OpenRA.Mods.RA
self.SetTargetLine(target, Color.Yellow);
var range = WRange.FromCells(target.Actor.Info.Traits.Get<GuardableInfo>().Range);
self.QueueActivity(false, new AttackMove.AttackMoveActivity(self,
new Follow(self, target, range)));
self.QueueActivity(false, new AttackMove.AttackMoveActivity(self, self.Trait<IMove>().MoveFollow(self, target, range)));
}
}