Fix guardian damage transfer (#26541)

This commit is contained in:
Alice "Arimah" Heurlin 2024-03-30 02:25:42 +01:00 committed by GitHub
parent 86a24db72a
commit 2e9c8f691c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -256,7 +256,7 @@ namespace Content.Server.Guardian
/// </summary>
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(