fix: update ChainLightningSceptreInteraction to handle only secondary interactions and adjust Chain_Hit_Effect duration

- Added a check in ChainLightningSceptreInteraction to return early if the interaction type is not Secondary.
- Reduced the duration of Chain_Hit_Effect from 0.6 to 0.05 for improved gameplay balance.
- Removed the primary interaction from chain_lightning_sceptre.json to streamline item functionality.

Tests: All tests passing. Build: ./gradlew clean build successful.
This commit is contained in:
2026-04-28 08:30:58 +02:00
parent f6ca35bfc4
commit 51a19d5f62
3 changed files with 4 additions and 2 deletions
@@ -48,6 +48,9 @@ public final class ChainLightningSceptreInteraction extends SimpleInstantInterac
protected void firstRun(@Nonnull InteractionType type,
@Nonnull InteractionContext context,
@Nonnull CooldownHandler cooldownHandler) {
if (type != InteractionType.Secondary) {
return;
}
CooldownHandler.Cooldown cooldown = cooldownHandler.getCooldown(
COOLDOWN_ID, COOLDOWN_TIME, CHARGE_TIMES, FORCE_CREATE, INTERRUPT_RECHARGE);
if (cooldown == null || cooldown.hasCooldown(false)) {