Quantcast

Updated for 8.0 BFA

Xruptor [07-24-18 - 22:53]
Updated for 8.0 BFA
Filename
XanDebuffTimers.lua
XanDebuffTimers.toc
diff --git a/XanDebuffTimers.lua b/XanDebuffTimers.lua
index 7bb39bb..a3d6554 100644
--- a/XanDebuffTimers.lua
+++ b/XanDebuffTimers.lua
@@ -180,7 +180,12 @@ local eventSwitch = {
 	["DAMAGE_SPLIT"] = true,
 }

-function f:COMBAT_LOG_EVENT_UNFILTERED(event, timestamp, eventType, hideCaster, sourceGUID, sourceName, srcFlags, sourceRaidFlags, dstGUID, destName, destFlags, destRaidFlags, spellID, spellName, spellSchool, auraType, amount)
+local CombatLogGetCurrentEventInfo = CombatLogGetCurrentEventInfo
+
+function f:COMBAT_LOG_EVENT_UNFILTERED()
+
+	--local timestamp, eventType, hideCaster, sourceGUID, sourceName, srcFlags, sourceRaidFlags, dstGUID, destName, destFlags, destRaidFlags, spellID, spellName, spellSchool, auraType, amount
+	local timestamp, eventType, _, sourceGUID, _, srcFlags, _, dstGUID = CombatLogGetCurrentEventInfo()

     if eventType == "UNIT_DIED" or eventType == "UNIT_DESTROYED" then
 		--clear the debuffs if the unit died
@@ -433,7 +438,8 @@ function f:ProcessDebuffs(id)
 	local sdTimer = timerList[id] --makes things easier to read

 	for i=1, MAX_TIMERS do
-		local name, _, icon, count, _, duration, expTime, unitCaster, _, _, spellId = UnitAura(id, i, 'PLAYER|HARMFUL')
+
+		local name, icon, count, debuffType, duration, expTime, unitCaster, canStealOrPurge, nameplateShowPersonal, spellId = UnitAura(id, i, 'PLAYER|HARMFUL')
 		--check for duration > 0 for the evil DIVIDE BY ZERO
 		if name and duration and duration > 0 then
 			local beforeEnd = expTime - GetTime()
diff --git a/XanDebuffTimers.toc b/XanDebuffTimers.toc
index a6b7774..df42fbe 100644
--- a/XanDebuffTimers.toc
+++ b/XanDebuffTimers.toc
@@ -1,8 +1,8 @@
-## Interface: 70100
+## Interface: 80000
 ## Title: xanDebuffTimers
 ## Notes: A small text based progress bar system for target debuffs.
 ## Author: Xruptor
-## Version: 4.0
+## Version: 4.1
 ## OptionalDeps: tekDebug
 ## SavedVariablesPerCharacter: XDT_DB