Quantcast

Signed-off-by: BillLive <bill@live.com.au>

BillLive [12-30-15 - 12:58]
Signed-off-by: BillLive <bill@live.com.au>
Filename
Elementarist.lua
diff --git a/Elementarist.lua b/Elementarist.lua
index 0b731f6..b3db05b 100755
--- a/Elementarist.lua
+++ b/Elementarist.lua
@@ -462,14 +462,7 @@ function Elementarist:RemoveFromTables(guid)
 end

 function Elementarist:PurgeDebuffTable()
-	if (Elementarist.auraCooldowns["0"]) then
-		local tmp = Elementarist.auraCooldowns["0"];
-		Elementarist.auraCooldowns = {
-			["0"] = tmp
-		};
-	else
-		Elementarist.auraCooldowns = {};
-	end;
+	Elementarist.auraCooldowns = {};
 	Elementarist:UpdateAuraTracker()
 end

@@ -764,7 +757,7 @@ function Elementarist:UpdateAuraTracker()
 			Elementarist.textList["debuff"]:SetText("")
 			Elementarist.auraCooldownFrame["main"]:SetCooldown(0, 0)
 			Elementarist.auraCooldownFrame["main"]:SetDrawBling(false)
-			m = m - 1
+			m = m + 1
 		end
 	end;
 end
@@ -1052,11 +1045,7 @@ function Elementarist:OnUpdate(elapsed)
 		if (not ElementaristDB.debuffdisabled) then
 			Elementarist.AuraTrackerUpdate = Elementarist.AuraTrackerUpdate + elapsed
 			if (Elementarist.AuraTrackerUpdate >= 1) then
-				if (UnitAffectingCombat("player")) then
-					Elementarist:UpdateAuraTracker()
-				else
-					Elementarist:PurgeDebuffTable()
-				end
+				Elementarist:UpdateAuraTracker()
 			end
 		end
 		if (not ElementaristDB.shielddisabled) then