Skip to content

Commit

Permalink
feat: announce the timer on every number divisible by 10
Browse files Browse the repository at this point in the history
  • Loading branch information
zeevallin committed Dec 19, 2020
1 parent 66e0009 commit 83c4d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Loot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ end
function Addon:ADDON_LOOT_SESSION_TICK(event, session)
self:Debug("session (%d) ticked (%d/%d seconds) for %s from %s (%d)", session.id, session.tick, session.duration, session.item.link, session.item.player.fqname, session.item.id)
local counter = session.duration - session.tick
if counter < 6 and counter > 0 then
if (counter < 6 and counter > 0) or ((counter % 10) == 0) then
self:Announce( string.format("%d seconds remain", counter) )
end
end
Expand Down

0 comments on commit 83c4d3b

Please sign in to comment.