Skip to content

Commit

Permalink
Merge pull request #154 from Pietrodjaowjao/patch-1
Browse files Browse the repository at this point in the history
Fix zero kill cooldown not working
  • Loading branch information
scp222thj authored Aug 17, 2024
2 parents 3480536 + 1b5edbe commit c9b4099
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Patches/PlayerControlPatches.cs
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ public static bool Prefix(PlayerControl __instance, PlayerControl target){
}

// Direct kill RPC should only be used when absolutely necessary as to avoid detection from anticheat mods
if (CheatToggles.killAnyone || Utils.isVanished(__instance.Data) || Utils.isMeeting || (MalumPPMCheats.oldRole != null && !Utils.getBehaviourByRoleType((AmongUs.GameOptions.RoleTypes)MalumPPMCheats.oldRole).IsImpostor)){
if (CheatToggles.killAnyone || CheatToggles.zeroKillCd || Utils.isVanished(__instance.Data) || Utils.isMeeting || (MalumPPMCheats.oldRole != null && !Utils.getBehaviourByRoleType((AmongUs.GameOptions.RoleTypes)MalumPPMCheats.oldRole).IsImpostor)){
if (!__instance.Data.Role.IsValidTarget(target.Data))
{
return true;
@@ -79,4 +79,4 @@ public static void Prefix(ref bool shouldAnimate){
shouldAnimate = false;
}
}
}
}

0 comments on commit c9b4099

Please sign in to comment.