From a865f680c577406b82b1e319563493890bbee7f6 Mon Sep 17 00:00:00 2001 From: Roman Hergenreder Date: Wed, 22 Nov 2017 22:39:42 +0100 Subject: [PATCH] Bugfix --- AutoQueueBG.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AutoQueueBG.lua b/AutoQueueBG.lua index 73f5453..30321d5 100644 --- a/AutoQueueBG.lua +++ b/AutoQueueBG.lua @@ -166,7 +166,7 @@ function AutoQueueBG:BuffDuration(unit, buffName) if expirationTime == nil then return 0 else - return (GetTime() - expirationTime) + return -1 * (GetTime() - expirationTime) end end @@ -194,7 +194,7 @@ function AutoQueueBG:BuffPlayers() local unit = "raid" .. i if AutoQueueBG:CheckRaidMember(unit) then local spellName = GetSpellInfo(GSDK_ID) - if AutoQueueBG:BuffDuration(unit, spellName) < 15 then + if AutoQueueBG:BuffDuration(unit, spellName) < 15000 then AutoQueueBG:BuffPlayer(unit, GSDK_ID) return; end