From 0f120058dcd2849f18ba398f9b7c5d047dc76c08 Mon Sep 17 00:00:00 2001 From: dobshn <158257259+dobshn@users.noreply.github.com> Date: Sun, 23 Mar 2025 02:21:22 +0900 Subject: [PATCH] Fixed cooldown duration calculation. Corrected the random variance range to properly calculate duration between (milliseconds - variance) and (milliseconds + variance). --- src/engine/Cooldown.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/Cooldown.java b/src/engine/Cooldown.java index 4eeb105ea..ad39a0122 100644 --- a/src/engine/Cooldown.java +++ b/src/engine/Cooldown.java @@ -66,6 +66,6 @@ public final void reset() { if (this.variance != 0) this.duration = (this.milliseconds - this.variance) + (int) (Math.random() - * (this.milliseconds + this.variance)); + * (this.variance * 2)); } }