Skip to content

Commit b6d8a55

Browse files
committed
Fix another secret value bug
1 parent e9ebe64 commit b6d8a55

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

SheepMonitor.toc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## Title: Sheep Monitor
33
## Notes: Provides various methods of notification to help you keep track of your flock.
44
## Author: funkjedi
5-
## Version: 1.35
5+
## Version: 1.36
66
## SavedVariables: SheepMonitorDatabase
77
## OptionalDeps: Ace3, LibAuraInfo-1.0
88
## X-Curse-Project-ID: 28218

changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
1.36
2+
- guard against secret cooldown values
3+
14
1.35
25
- guard against secret destGUID values
36

timers.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ if not string.match(GetLocale(), '^en') then
2020
SHEEPMONITOR_TEXT_FONT = STANDARD_TEXT_FONT
2121
end
2222

23+
local issecretvalue = issecretvalue or function()
24+
return false
25+
end
26+
2327
local function createNotifierFrame()
2428
if notifierFrame then
2529
return notifierFrame
@@ -108,7 +112,7 @@ function SheepMonitorTimerMixin:Stop()
108112
end
109113

110114
function SheepMonitorTimerMixin:GetRemaining(raw)
111-
if not self.aura then
115+
if not self.aura or issecretvalue(self.aura.duration) then
112116
return 0
113117
end
114118

0 commit comments

Comments
 (0)