Skip to content

Commit

Permalink
Fixing a cooldown animation display issue on icons indicators linked …
Browse files Browse the repository at this point in the history
…to single missing buffs (GH issue #278)
  • Loading branch information
michaelnpsp committed Nov 22, 2024
1 parent 8baf14e commit 6f362b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions modules/IndicatorIcons.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,12 @@ local function Icon_OnFrameUpdate(f)
aura.text:SetText(count>1 and count or "")
end
if showCool then
local expiration, duration = status:GetExpirationTime(unit) or 0, status:GetDuration(unit) or 0
aura.cooldown:SetCooldown(expiration - duration, duration)
local expiration, duration = status:GetExpirationTime(unit), status:GetDuration(unit)
if expiration and duration then
aura.cooldown:SetCooldown(expiration - duration, duration)
else
aura.cooldown:SetCooldown(0, 0)
end
end
aura:Show()
i = i + 1
Expand Down
2 changes: 1 addition & 1 deletion modules/StatusAurasBuffs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ local durations = {}
-- missing buffs
local mcounts = {1}
local mexpirations = {0}
local mdurations = {1073741824}
local mdurations = mexpirations

-- strict filter management functions
local function GenSpellsMask(spells)
Expand Down

0 comments on commit 6f362b1

Please sign in to comment.