Skip to content

Commit

Permalink
update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuller committed Nov 19, 2024
1 parent 4f08bb6 commit 46d97f2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
13 changes: 5 additions & 8 deletions OmniCC/core/cooldown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 46d97f2

Please sign in to comment.