From 46d97f2f33a6382a0b5eee6827fe475ceb6b468b Mon Sep 17 00:00:00 2001 From: Jason Greer Date: Tue, 19 Nov 2024 18:28:16 -0500 Subject: [PATCH] update changelog --- OmniCC/core/cooldown.lua | 13 +++++-------- changelog.md | 6 ++++++ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/OmniCC/core/cooldown.lua b/OmniCC/core/cooldown.lua index a882401..8993ef2 100644 --- a/OmniCC/core/cooldown.lua +++ b/OmniCC/core/cooldown.lua @@ -146,7 +146,9 @@ function Cooldown:CanShowText() -- config checks local settings = self._occ_settings - if not settings then + + -- text enabled + if not (settings and settings.enableText) then return false end @@ -161,11 +163,6 @@ function Cooldown:CanShowText() return false end - -- hide text if we don't want to display it for this kind of cooldown - if not settings.enableText then - return false - end - return true end @@ -179,7 +176,7 @@ function Cooldown:CanShowFinishEffect() if duration <= 0 then return false end - + local modRate = self._occ_modRate or 1 if modRate <= 0 then return false @@ -381,7 +378,7 @@ function Cooldown:SetTimer(start, duration, modRate) if modRate == nil then modRate = 1 end - + -- both the wow api and addons (espcially auras) have a habit of resetting -- cooldowns every time there's an update to an aura -- we chack and do nothing if there's an exact start/duration match diff --git a/changelog.md b/changelog.md index a79e919..ec6d58f 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # OmniCC Changelog +## 11.0.4 + +* Update TOCs +* Update cooldown calculations +* Add typings + ## 11.0.3 * Add modRate to display duration calculations