Refactor building power-down and Invulnerable effect. Introduces render bugs on state change (effects appearing/dissapearing a frame too late)
This commit is contained in:
@@ -19,7 +19,7 @@ namespace OpenRa.Game.Traits
|
||||
|
||||
// Check if powered
|
||||
var b = self.traits.Get<Building>();
|
||||
if (b != null && b.InsuffientPower())
|
||||
if (b != null && b.Disabled)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user