Skip to content

Commit

Permalink
Fix Tendons Damage (#1835)
Browse files Browse the repository at this point in the history
<!--
This is a semi-strict format, you can add/remove sections as needed but
the order/format should be kept the same
Remove these comments before submitting
-->

# Description
This PR fixes the contact damage used by Tendons.
Fix originally made in space-wizards/space-station-14/pull/31494

---

# Changelog

<!--
You can add an author after the `:cl:` to change the name that appears
in the changelog (ex: `:cl: Death`)
Leaving it blank will default to your GitHub display name
This includes all available types for the changelog
-->

:cl:
- fix: Fixed tendons not causing damage! Careful!
  • Loading branch information
LaryNevesPR authored Feb 25, 2025
1 parent 330fa0c commit 2cb054e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Shared/Damage/Systems/DamageContactsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private void OnEntityEnter(EntityUid uid, DamageContactsComponent component, ref
if (HasComp<DamagedByContactComponent>(otherUid))
return;

if (_whitelistSystem.IsWhitelistFail(component.IgnoreWhitelist, otherUid))
if (_whitelistSystem.IsWhitelistPass(component.IgnoreWhitelist, otherUid))
return;

var damagedByContact = EnsureComp<DamagedByContactComponent>(otherUid);
Expand Down

0 comments on commit 2cb054e

Please sign in to comment.