Fix damaged-building artwork and don't show healthbar for dead units (cnc critical-building state)
This commit is contained in:
@@ -64,7 +64,7 @@ namespace OpenRA.Traits
|
||||
|
||||
protected virtual string GetPrefix(Actor self)
|
||||
{
|
||||
return self.GetDamageState() == DamageState.Half ? "damaged-" : "";
|
||||
return self.GetExtendedDamageState() <= ExtendedDamageState.Half ? "damaged-" : "";
|
||||
}
|
||||
|
||||
public void PlayCustomAnim(Actor self, string name)
|
||||
|
||||
Reference in New Issue
Block a user