Skip to content

Commit

Permalink
Fix show handcuffed for SCPs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vretu-Dev committed Oct 18, 2024
1 parent a6da005 commit 93d2bab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions UsefulHints/EventHandlers/Items/Hints.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public static void UnregisterEvents()
Exiled.Events.Handlers.Player.PickingUpItem -= OnPickingUpJailbird;
Exiled.Events.Handlers.Player.ChangingItem -= OnEquipJailbird;
}
// MicroHid Handler
private static void OnPickingUpMicroHid(PickingUpItemEventArgs ev)
{
if (ev.Pickup.Base is MicroHIDPickup microHidPickup)
Expand Down
2 changes: 1 addition & 1 deletion UsefulHints/EventHandlers/Modules/FFWarning.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static void UnregisterEvents()
}
private static void OnHurting(HurtingEventArgs ev)
{
if (ev.Attacker != null && ev.Player != null && ev.Attacker.Role != null && ev.Player.Role != null)
if (ev.Attacker != null && ev.Player != null && ev.Attacker.Role != null && ev.Player.Role != null && ev.Attacker.Role.Team != Team.SCPs && ev.Player.Role.Team != Team.SCPs)
{
if (ev.Attacker.Role.Side == ev.Player.Role.Side && ev.Attacker != ev.Player)
{
Expand Down

0 comments on commit 93d2bab

Please sign in to comment.