From 3aa94fee6c3fc4da9647d3b3fd504427d6bb464c Mon Sep 17 00:00:00 2001 From: Thorbane Date: Thu, 13 Jun 2024 01:54:36 -0700 Subject: [PATCH] Only allow repair armor repair of non-hostile pawns. --- .../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 eb0d8265b0..1346fa5990 100644 --- a/Source/CombatExtended/CombatExtended/Comps/CompArmorDurability.cs +++ b/Source/CombatExtended/CombatExtended/Comps/CompArmorDurability.cs @@ -176,7 +176,7 @@ public override void PostPreApplyDamage(ref DamageInfo dinfo, out bool absorbed) public override IEnumerable CompFloatMenuOptions(Pawn selPawn) { - if (durabilityProps.Repairable) + if (durabilityProps.Repairable && !this.parent.HostileTo(selPawn)) { var firstIngredientProvidedOrNotNeeded = true; var secondIngredientProvidedOrNotNeeded = true;