Fix damaged-building artwork and don't show healthbar for dead units (cnc critical-building state)
This commit is contained in:
@@ -46,7 +46,7 @@ namespace OpenRA.Mods.RA
|
||||
bool CanRepair(Actor self)
|
||||
{
|
||||
var li = self.traits.GetOrDefault<LimitedAmmo>();
|
||||
return (Health.ExtendedDamageState != ExtendedDamageState.Undamaged || (li != null && !li.FullAmmo()) );
|
||||
return (Health.ExtendedDamageState < ExtendedDamageState.Undamaged || (li != null && !li.FullAmmo()) );
|
||||
}
|
||||
|
||||
public string CursorForOrder(Actor self, Order order)
|
||||
|
||||
Reference in New Issue
Block a user