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:
+3
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user