(912383b95) Unequip the diving gear when the follow target unequips it.

This commit is contained in:
Joonas Rikkonen
2019-05-23 16:27:10 +03:00
parent b8ebf34c38
commit 90149b9435
6 changed files with 26 additions and 59 deletions
@@ -606,7 +606,7 @@ namespace Barotrauma
.ThenByDescending(a => a.Strength).FirstOrDefault();
if (affliction.DamagePerSecond > 0 || affliction.Strength > 0)
{
var limbHealth = GetMathingLimbHealth(affliction);
var limbHealth = GetMatchingLimbHealth(affliction);
if (limbHealth != null)
{
selectedLimbIndex = limbHealths.IndexOf(limbHealth);