Skip to content

Commit 005644a

Browse files
committed
Fix Friendly Fire
1 parent a1e1519 commit 005644a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EXILED/Exiled.Events/Patches/Generic/IndividualFriendlyFire.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public static bool CheckFriendlyFirePlayerRules(Footprint attackerFootprint, Ref
8989

9090
// Return false, no custom friendly fire allowed, default to NW logic for FF. No point in processing if FF is enabled across the board.
9191
if (Server.FriendlyFire)
92-
return HitboxIdentity.IsEnemy(attackerFootprint.Role, victimHub.roleManager.CurrentRole.RoleTypeId);
92+
return HitboxIdentity.IsDamageable(attackerFootprint.Role, victimHub.roleManager.CurrentRole.RoleTypeId);
9393

9494
// always allow damage from Server.Host
9595
if (attackerFootprint.Hub == Server.Host.ReferenceHub)

0 commit comments

Comments
 (0)