From ec3c678201dc9a9c3631c7c6161704c5ae51cc53 Mon Sep 17 00:00:00 2001 From: Xruptor Date: Tue, 24 Jul 2018 18:53:24 -0400 Subject: [PATCH] Updated for 8.0 BFA --- XanDebuffTimers.lua | 10 ++++++++-- XanDebuffTimers.toc | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) 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 -- 1.7.9.5