correct cursor for healing

This commit is contained in:
Chris Forbes
2009-12-31 16:44:29 +13:00
parent 493e207bbf
commit 4a52a38d0f
4 changed files with 5 additions and 3 deletions

View File

@@ -146,12 +146,12 @@ namespace OpenRa.Game.Traits
if (((underCursor.Owner == self.Owner) ^ isHeal)
&& !mi.Modifiers.HasModifier( Modifiers.Ctrl )) return null;
if (!Combat.HasAnyValidWeapons(self, underCursor)) return null;
return new Order("Attack", self, underCursor, int2.Zero, null);
return new Order(isHeal ? "Heal" : "Attack", self, underCursor, int2.Zero, null);
}
public void ResolveOrder(Actor self, Order order)
{
if (order.OrderString == "Attack")
if (order.OrderString == "Attack" || order.OrderString == "Heal")
{
self.CancelActivity();
QueueAttack(self, order);