From 624816619df52650e5452a4be701bc6ac039b697 Mon Sep 17 00:00:00 2001 From: CMDR-Bill-Doors Date: Fri, 23 Aug 2024 10:15:31 +0100 Subject: [PATCH] Update CompArmorDurability.cs --- .../CombatExtended/CombatExtended/Comps/CompArmorDurability.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/CombatExtended/CombatExtended/Comps/CompArmorDurability.cs b/Source/CombatExtended/CombatExtended/Comps/CompArmorDurability.cs index 1346fa5990..98418ab143 100644 --- a/Source/CombatExtended/CombatExtended/Comps/CompArmorDurability.cs +++ b/Source/CombatExtended/CombatExtended/Comps/CompArmorDurability.cs @@ -164,7 +164,7 @@ public override string CompInspectStringExtra() public override void PostPreApplyDamage(ref DamageInfo dinfo, out bool absorbed) { base.PostPreApplyDamage(ref dinfo, out absorbed); - if (curDurability > 0) + if (curDurability > 0 && dinfo.Def.harmsHealth && dinfo.Def.ExternalViolenceFor(parent)) { curDurability -= dinfo.Amount; if (curDurability < 0)