fix TSLA firing in low power or disabled

This commit is contained in:
Chris Forbes
2010-05-01 14:51:56 +12:00
parent 897c102d8e
commit 0c81356449

View File

@@ -71,6 +71,7 @@ namespace OpenRA.Traits
{ {
if (target == null) return false; if (target == null) return false;
if ((primaryFireDelay > 0) && (secondaryFireDelay > 0)) return false; if ((primaryFireDelay > 0) && (secondaryFireDelay > 0)) return false;
if (self.traits.WithInterface<IDisable>().Any(d => d.Disabled)) return false;
return true; return true;
} }