Skip to content

Commit

Permalink
Fixed Shadow Shackles Not Activating for Blood Cultists (#1456)
Browse files Browse the repository at this point in the history
# Description
Fixed Shadow Shackles not activating when you melee hit the target.

The Problem: The code checked if the target wasn't stunned when you hit
someone, therefore not activating unless the target was already stunned.
I fixed it by removing the ! operator on
`HasComp<StunnedComponent>(target)` check.

---

<details><summary><h1>Media</h1></summary>
<p>



https://github.com/user-attachments/assets/5ac1a5dd-5d62-4400-be64-56500c87ed5e



</p>
</details>

---

# Changelog

:cl:
- fix: Fixed Shadow Shackles spell not activating.
  • Loading branch information
Lumminal authored Jan 8, 2025
1 parent bea6ca7 commit 70f7298
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private void OnMeleeHit(EntityUid uid, ShadowShacklesAuraComponent component, Me

var target = args.HitEntities.First();
if (uid == target
|| !HasComp<StunnedComponent>(target)
|| HasComp<StunnedComponent>(target)
|| HasComp<BloodCultistComponent>(target))
return;

Expand Down

0 comments on commit 70f7298

Please sign in to comment.