From: Alice "Arimah" Heurlin <30327355+arimah@users.noreply.github.com> Date: Sat, 30 Mar 2024 01:25:42 +0000 (+0100) Subject: Fix guardian damage transfer (#26541) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=2e9c8f691c6a1e5f8e45899866a9fe443f9f4b50;p=space-station-14.git Fix guardian damage transfer (#26541) --- diff --git a/Content.Server/Guardian/GuardianSystem.cs b/Content.Server/Guardian/GuardianSystem.cs index e58f997b21..97d4eb0680 100644 --- a/Content.Server/Guardian/GuardianSystem.cs +++ b/Content.Server/Guardian/GuardianSystem.cs @@ -256,7 +256,7 @@ namespace Content.Server.Guardian /// private void OnGuardianDamaged(EntityUid uid, GuardianComponent component, DamageChangedEvent args) { - if (args.DamageDelta == null || component.Host == null || component.DamageShare > 0) + if (args.DamageDelta == null || component.Host == null || component.DamageShare == 0) return; _damageSystem.TryChangeDamage(