From 8c0af01626ff1be81dd3de3c18504185de5ced92 Mon Sep 17 00:00:00 2001 From: shade-storm Date: Sat, 4 Apr 2026 19:12:26 +0100 Subject: [PATCH] Fixed Infinite Stealth when messing with GenericAttackSpeed with other mods --- CalPlayer/CalamityPlayer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 205a0eea3a..fac123c411 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -5932,7 +5932,7 @@ public void UpdateRogueStealth() // "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) {