This commit is contained in:
rhailrake
2023-09-08 18:30:08 +06:00
committed by Aviu00
parent b52c223a5d
commit edee101e6f

View File

@@ -99,7 +99,7 @@ namespace Content.Server.Body.Systems
if (_gameTiming.CurTime >= respirator.LastGaspPopupTime + respirator.GaspPopupCooldown)
{
respirator.LastGaspPopupTime = _gameTiming.CurTime;
if (TryComp<MetaDataComponent>(uid, out var metaDataComponent))
{
_popupSystem.PopupEntity($"{metaDataComponent.EntityName} задыхается!", uid);
@@ -257,7 +257,7 @@ namespace Content.Server.Body.Systems
if (comp.CPRPerformedBy != null && comp.CPRPerformedBy != user)
return false;
if (!TryComp<HumanoidAppearanceComponent>(target, out _))
if (!TryComp<HumanoidAppearanceComponent>(target, out _) && !TryComp<HumanoidAppearanceComponent>(user, out _))
return false;
if (!TryComp(target, out MobStateComponent? targetState))