diff --git a/src/main/kotlin/club/mcscrims/speedhg/kit/listener/KitEventDispatcher.kt b/src/main/kotlin/club/mcscrims/speedhg/kit/listener/KitEventDispatcher.kt index 0338951..2cfe086 100644 --- a/src/main/kotlin/club/mcscrims/speedhg/kit/listener/KitEventDispatcher.kt +++ b/src/main/kotlin/club/mcscrims/speedhg/kit/listener/KitEventDispatcher.kt @@ -97,6 +97,12 @@ class KitEventDispatcher( if ( !isIngame() ) return if (!isAlive( victim )) return + // ── Fully-charged-hit guard ────────────────────────────────────────────── + // Since the generic AttackSpeed attribute was doubled, spam-clicks would + // otherwise still accumulate kit hit-counters. We only let fully charged + // swings (≥ 90 %) through so kit abilities can't be spammed. + if (attacker.getCooledAttackStrength( 0f ) < 0.9f ) return + val attackerKit = kitManager.getSelectedKit( attacker ) ?: return val attackerPlaystyle = kitManager.getSelectedPlaystyle( attacker ) val chargeData = kitManager.getChargeData( attacker ) ?: return