Show critical mobs as Alive on crew monitor (#16571)

This commit is contained in:
themias
2023-05-18 19:49:55 -04:00
committed by GitHub
parent 1e0476b1b8
commit ac324553ce

View 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;