diff --git a/OpenRA.Mods.Common/Traits/Health.cs b/OpenRA.Mods.Common/Traits/Health.cs index 048f323fea..5aa80b4040 100644 --- a/OpenRA.Mods.Common/Traits/Health.cs +++ b/OpenRA.Mods.Common/Traits/Health.cs @@ -88,6 +88,9 @@ namespace OpenRA.Mods.Common.Traits { get { + if (hp == MaxHP) + return DamageState.Undamaged; + if (hp <= 0) return DamageState.Dead; @@ -100,9 +103,6 @@ namespace OpenRA.Mods.Common.Traits if (hp * 100L < MaxHP * 75L) return DamageState.Medium; - if (hp == MaxHP) - return DamageState.Undamaged; - return DamageState.Light; } }