From: themias <89101928+themias@users.noreply.github.com> Date: Thu, 18 May 2023 23:49:55 +0000 (-0400) Subject: Show critical mobs as Alive on crew monitor (#16571) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=ac324553ce41a08815e78f8a4cec98833548ee56;p=space-station-14.git Show critical mobs as Alive on crew monitor (#16571) --- diff --git a/Content.Server/Medical/SuitSensors/SuitSensorSystem.cs b/Content.Server/Medical/SuitSensors/SuitSensorSystem.cs index 0929d88c71..821a7065d4 100644 --- a/Content.Server/Medical/SuitSensors/SuitSensorSystem.cs +++ b/Content.Server/Medical/SuitSensors/SuitSensorSystem.cs @@ -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;