From f070b93c490affaa76e49113bc3d59517755d656 Mon Sep 17 00:00:00 2001 From: Xruptor Date: Wed, 4 Aug 2010 10:01:16 -0400 Subject: [PATCH] -Added some more event switches that were missing. -Changed the way events are determined. --- XanDebuffTimers.lua | 10 +++++++++- XanDebuffTimers.toc | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/XanDebuffTimers.lua b/XanDebuffTimers.lua index 43c2480..ecb5564 100644 --- a/XanDebuffTimers.lua +++ b/XanDebuffTimers.lua @@ -126,6 +126,14 @@ function f:PLAYER_FOCUS_CHANGED() end end +local eventSwitch = { + ["SPELL_AURA_APPLIED"] = true, + ["SPELL_AURA_REMOVED"] = true, + ["SPELL_AURA_REFRESH"] = true, + ["SPELL_AURA_APPLIED_DOSE"] = true, + ["SPELL_AURA_APPLIED_REMOVED_DOSE"] = true, +} + function f:COMBAT_LOG_EVENT_UNFILTERED(event, timestamp, eventType, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, spellID, spellName, spellSchool, auraType, amount) if eventType == "UNIT_DIED" or eventType == "UNIT_DESTROYED" then @@ -141,7 +149,7 @@ function f:COMBAT_LOG_EVENT_UNFILTERED(event, timestamp, eventType, srcGUID, src focusGUID = 0 end - elseif eventType == "SPELL_AURA_APPLIED" or eventType == "SPELL_AURA_REMOVED" or eventType == "SPELL_AURA_REFRESH" and band(srcFlags, COMBATLOG_OBJECT_AFFILIATION_MINE) ~= 0 then + elseif eventSwitch[eventType] and band(srcFlags, COMBATLOG_OBJECT_AFFILIATION_MINE) ~= 0 then --process the spells based on GUID if dstGUID == targetGUID then f:ProcessDebuffs("target", timers) diff --git a/XanDebuffTimers.toc b/XanDebuffTimers.toc index c33201b..f96016b 100644 --- a/XanDebuffTimers.toc +++ b/XanDebuffTimers.toc @@ -2,7 +2,7 @@ ## Title: XanDebuffTimers ## Notes: A small text based progress bar system for target debuffs. ## Author: Xanthos -## Version: 1.7 +## Version: 1.8 ## SavedVariablesPerCharacter: XDT_DB XanDebuffTimers.lua -- 1.7.9.5