Skip to content

Commit

Permalink
Fix lua error
Browse files Browse the repository at this point in the history
  • Loading branch information
InfusOnWoW committed Oct 29, 2023
1 parent 12b4c29 commit 661c4c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WeakAuras/RegionTypes/Icon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ local function modify(parent, region, data)
end

function region:PreShow()
if (cooldown.duration and cooldown.duration > 0.01) then
if (cooldown.duration and cooldown.duration > 0.01 and cooldown.duration ~= math.huge and cooldown.expirationTime ~= math.huge) then
cooldown:Show();
cooldown:SetCooldown(cooldown.expirationTime - cooldown.duration,
cooldown.duration,
Expand Down

0 comments on commit 661c4c3

Please sign in to comment.