Fix idle animations / prone.

This commit is contained in:
Paul Chote
2010-11-30 12:51:25 +13:00
parent 5070a81db4
commit 2d224a207c
5 changed files with 72 additions and 88 deletions

View File

@@ -51,7 +51,6 @@ namespace OpenRA.Mods.RA
Actor currentTarget;
public void TickIdle( Actor self )
{
System.Console.WriteLine("AutoHeal:TickIdle");
var attack = self.Trait<AttackBase>();
var range = attack.GetMaximumRange();
@@ -59,10 +58,7 @@ namespace OpenRA.Mods.RA
{
var currentTarget = ChooseTarget(self, range);
if( currentTarget != null )
{
System.Console.WriteLine("AutoHeal: Queing heal activity");
self.QueueActivity(self.Trait<AttackBase>().GetAttackActivity(self, Target.FromActor( currentTarget ), false ));
}
}
}
}