mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-19 15:51:52 +00:00
Fix kills being tracked when the kill attempt failed
This commit is contained in:
1 parent
1056cfa83c
commit
c260c391cc
1 file changed
+4
-1
@@ -68,7 +68,10 @@ internal static class PlayerControlPatch
|
||||
Logger_.LogPrivate($"{__instance.Data.PlayerName} Has killed {target.Data.PlayerName} as {__instance.Data.RoleType.GetRoleName()}", "EventLog");
|
||||
|
||||
// Track kill count in player's BetterData
|
||||
__instance.BetterData().RoleInfo.Kills += 1;
|
||||
if (!target.IsAlive())
|
||||
{
|
||||
__instance.BetterData().RoleInfo.Kills += 1;
|
||||
}
|
||||
}
|
||||
|
||||
[HarmonyPatch(typeof(PlayerControl), nameof(PlayerControl.Shapeshift))]
|
||||
|
||||
Reference in new issue
Block a user