mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-20 01:46:19 +00:00
Anti-Cheat Add IsInVanish Check for MurderPlayerRPC
This commit is contained in:
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user