]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Show critical mobs as Alive on crew monitor (#16571)
authorthemias <89101928+themias@users.noreply.github.com>
Thu, 18 May 2023 23:49:55 +0000 (19:49 -0400)
committerGitHub <noreply@github.com>
Thu, 18 May 2023 23:49:55 +0000 (09:49 +1000)
Content.Server/Medical/SuitSensors/SuitSensorSystem.cs

index 0929d88c71a605d89be9146a9b3849a3cdcf3cea..821a7065d45fae2aa914a8dfa506f960d5049e0d 100644 (file)
@@ -296,7 +296,7 @@ namespace Content.Server.Medical.SuitSensors
             // get health mob state
             var isAlive = false;
             if (EntityManager.TryGetComponent(sensor.User.Value, out MobStateComponent? mobState))
-                isAlive = _mobStateSystem.IsAlive(sensor.User.Value, mobState);
+                isAlive = !_mobStateSystem.IsDead(sensor.User.Value, mobState);
 
             // get mob total damage
             var totalDamage = 0;