much better sub behavior

This commit is contained in:
Chris Forbes
2009-12-13 13:32:19 +13:00
parent 5eb373790b
commit e4c9073884
7 changed files with 21 additions and 4 deletions

View File

@@ -129,6 +129,7 @@ namespace OpenRa.Game.Traits
{
if (lmb || underCursor == null) return null;
if (underCursor.Owner == self.Owner) return null;
if (!Combat.HasAnyValidWeapons(self, underCursor)) return null;
return Order.Attack(self, underCursor);
}