-
-
Notifications
You must be signed in to change notification settings - Fork 647
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: division by zero in spell cooldown calculation (#1988)
Fixes potential division by zero error in the spell cooldown calculation. We have introduced a safety check to ensure rateCooldown is not zero or extremely close to zero before performing the division. In cases where rateCooldown is too small; it is reset to a minimal safe value to maintain functionality and avoid arithmetic exceptions. This change ensures stable and error-free operation even with small rateCooldown values. Resolves #1920 Resolves #1977
- Loading branch information
Showing
1 changed file
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters