(6d8c1f21d) Whoops.

This commit is contained in:
Joonas Rikkonen
2019-04-16 17:08:44 +03:00
parent b8b61ebb02
commit c361edfb8b
@@ -587,7 +587,7 @@ namespace Barotrauma
var affliction = GetAllAfflictions(a => a.Prefab.IndicatorLimb != LimbType.None) var affliction = GetAllAfflictions(a => a.Prefab.IndicatorLimb != LimbType.None)
.OrderByDescending(a => a.DamagePerSecond) .OrderByDescending(a => a.DamagePerSecond)
.ThenByDescending(a => a.Strength).FirstOrDefault(); .ThenByDescending(a => a.Strength).FirstOrDefault();
if (affliction.DamagePerSecond > 0 && affliction.Strength > 0) if (affliction.DamagePerSecond > 0 || affliction.Strength > 0)
{ {
var limbHealth = GetMathingLimbHealth(affliction); var limbHealth = GetMathingLimbHealth(affliction);
if (limbHealth != null) if (limbHealth != null)