Skip to content

Commit 016c33e

Browse files
committed
修复邪恶的设陷师的击杀冷却
1 parent 4b7b54f commit 016c33e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

TheOtherRoles/Patches/PlayerControlPatch.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2306,18 +2306,19 @@ public static void Postfix(PlayerControl __instance, [HarmonyArgument(0)] Player
23062306
}
23072307
else if (KillTrap.isTrapped(target) && EvilTrapper.isTrapKill) // トラップキルした場合のペナルティ
23082308
{
2309-
EvilTrapper.killTimer = GameOptionsManager.Instance.currentNormalGameOptions.KillCooldown;
2309+
EvilTrapper.evilTrapper.killTimer = GameOptionsManager.Instance.currentNormalGameOptions.KillCooldown;
23102310
HudManagerStartPatch.evilTrapperSetTrapButton.Timer = EvilTrapper.cooldown;
23112311
}
23122312
else // トラップにかかっていない対象を通常キルした場合はペナルティーを受ける
23132313
{
2314-
EvilTrapper.killTimer = GameOptionsManager.Instance.currentNormalGameOptions.KillCooldown + EvilTrapper.penaltyTime;
2314+
EvilTrapper.evilTrapper.killTimer = GameOptionsManager.Instance.currentNormalGameOptions.KillCooldown + EvilTrapper.penaltyTime;
23152315
HudManagerStartPatch.evilTrapperSetTrapButton.Timer = EvilTrapper.cooldown + EvilTrapper.penaltyTime;
23162316
}
23172317
if (!EvilTrapper.isTrapKill)
23182318
{
23192319
MessageWriter writer;
2320-
writer = AmongUsClient.Instance.StartRpcImmediately(CachedPlayer.LocalPlayer.PlayerControl.NetId, (byte)CustomRPC.ClearTrap, SendOption.Reliable, -1);
2320+
writer = AmongUsClient.Instance.StartRpcImmediately(CachedPlayer.LocalPlayer.PlayerControl.NetId,
2321+
(byte)CustomRPC.ClearTrap, SendOption.Reliable, -1);
23212322
AmongUsClient.Instance.FinishRpcImmediately(writer);
23222323
RPCProcedure.clearTrap();
23232324
}

0 commit comments

Comments
 (0)