flash target on attack

This commit is contained in:
Chris Forbes
2010-01-07 16:35:37 +13:00
parent d975f611fa
commit e5e76d071a
3 changed files with 39 additions and 0 deletions

View File

@@ -155,6 +155,9 @@ namespace OpenRa.Game.Traits
{
self.CancelActivity();
QueueAttack(self, order);
if (self.Owner == Game.LocalPlayer)
Game.world.AddFrameEndTask(w => w.Add(new FlashTarget(order.TargetActor)));
}
else
target = null;