From 3ab095c27c63d9b37dc5da6ec31bd3c46d68bfeb Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Mon, 28 Dec 2009 15:10:16 +1300 Subject: [PATCH] rude hack to fix AutoHeal --- OpenRa.Game/Traits/AutoHeal.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenRa.Game/Traits/AutoHeal.cs b/OpenRa.Game/Traits/AutoHeal.cs index 5eb31d11ea..0099cbb701 100644 --- a/OpenRa.Game/Traits/AutoHeal.cs +++ b/OpenRa.Game/Traits/AutoHeal.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; +using OpenRa.Game.Traits.Activities; namespace OpenRa.Game.Traits { @@ -15,7 +16,8 @@ namespace OpenRa.Game.Traits if (target != null) attack.ResolveOrder(self, new Order("Attack", self, target, int2.Zero, null)); else - self.CancelActivity(); + if (!(self.GetCurrentActivity() is Move)) + self.CancelActivity(); } float GetMaximumRange(Actor self)