Anti-Cheat Add IsInVanish Check for MurderPlayerRPC

This commit is contained in:
D1GQ authored and GitHub committed 2024-07-27 13:43:50 -05:00
1 parent f4e8e204f9
commit e9d971f5a5
1 file changed
+1 -1
+1 -1
View File
@@ -142,7 +142,7 @@ class AntiCheat
{
PlayerControl target = reader.ReadNetObject<PlayerControl>();
if (IsCrewmate || !player.IsAlive() || !target.IsAlive() || target.IsImpostorTeam())
if (IsCrewmate || !player.IsAlive() || player.IsInVanish() || !target.IsAlive() || target.IsImpostorTeam())
BAUNotificationManager.NotifyCheat(player, $"Invalid Action RPC: {Enum.GetName((RpcCalls)callId)}");
return;