Skip to content

Commit

Permalink
Exclude melee from wall frags
Browse files Browse the repository at this point in the history
  • Loading branch information
Safairette committed Nov 28, 2024
1 parent 662e7ad commit 79c06e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/CombatExtended/Harmony/Harmony_DamageWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static bool Prefix(DamageWorker __instance, DamageInfo dinfo, Thing victi
{
return true;
}
if (victim.def.useHitPoints && dinfo.Def.harmsHealth && dinfo.Def != DamageDefOf.Mining)
if (victim.def.useHitPoints && dinfo.Def.harmsHealth && dinfo.tool == null && dinfo.Def != DamageDefOf.Mining)
{
if (victim.def.category == ThingCategory.Building)
{
Expand Down

0 comments on commit 79c06e4

Please sign in to comment.