From 0262efa0c83dee1dd00dc8d4501eee65d66b3e14 Mon Sep 17 00:00:00 2001 From: Shade <70619193+shade-storm@users.noreply.github.com> Date: Sat, 13 Jun 2026 00:21:09 +0100 Subject: [PATCH] Fixed infinite stealth triggering when modifying GenericAttackSpeed with other mods (#116) --- CalPlayer/CalamityPlayer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index fb3de46490..88ab437d84 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -6407,7 +6407,7 @@ namespace CalamityMod.CalPlayer // "Clockwork" weapons can chain-fire multiple stealth strikes (really only 2 max) until you run out of stealth. bool animationCheck = it.useAnimation == it.useTime ? Player.itemAnimation == Player.itemAnimationMax - 1 // Standard weapon (first frame of use animation) - : Player.itemTime == (int)(it.useTime / Player.GetAttackSpeed()); // Clockwork weapon (first frame of any individual use event) + : Player.itemTime == (int)(it.useTime / Player.GetTotalAttackSpeed()); // Clockwork weapon (first frame of any individual use event) if (!stealthStrikeThisFrame && animationCheck && playerUsingWeapon) {