From 83c4d3b04a8c3d0561e6aba766a12f46c8209f2b Mon Sep 17 00:00:00 2001 From: "Zee V. (Philip)" Date: Sat, 19 Dec 2020 23:13:30 +0100 Subject: [PATCH] feat: announce the timer on every number divisible by 10 --- Loot.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Loot.lua b/Loot.lua index 4d10ac7..f71c570 100644 --- a/Loot.lua +++ b/Loot.lua @@ -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