Roman Hergenreder %!s(int64=6) %!d(string=hai) anos
pai
achega
a865f680c5
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      AutoQueueBG.lua

+ 2 - 2
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