From 77a1e6ab0ff2b65c2436ffb10c0be3ac0a6e49cf Mon Sep 17 00:00:00 2001 From: Taurenkey Date: Sun, 30 Jun 2024 19:32:42 +0100 Subject: [PATCH] Fix weaving --- XIVSlothCombo/Data/CooldownData.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XIVSlothCombo/Data/CooldownData.cs b/XIVSlothCombo/Data/CooldownData.cs index 5e27d87a7..3a370d8e1 100644 --- a/XIVSlothCombo/Data/CooldownData.cs +++ b/XIVSlothCombo/Data/CooldownData.cs @@ -26,7 +26,7 @@ public bool IsCooldown public unsafe float CooldownTotal => (ActionManager.GetAdjustedRecastTime(ActionType.Action, ActionID) / 1000f) * MaxCharges; /// Gets the cooldown time remaining. - public unsafe float CooldownRemaining => CooldownTotal - CooldownElapsed; + public unsafe float CooldownRemaining => IsCooldown ? CooldownTotal - CooldownElapsed : 0; /// Gets the maximum number of charges for an action at the current level. /// Number of charges.