From 46e7ad1d5832ace7b2850633dec4264722a7ef29 Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Sat, 10 Aug 2013 18:39:54 +0000 Subject: [PATCH] Minor changes to OvaleAura CLEU handler for readability. git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1001 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- OvaleAura.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OvaleAura.lua b/OvaleAura.lua index 72ab5eb..c2ab4b2 100644 --- a/OvaleAura.lua +++ b/OvaleAura.lua @@ -335,6 +335,7 @@ end function OvaleAura:COMBAT_LOG_EVENT_UNFILTERED(event, ...) local timestamp, event, hideCaster, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags = select(1, ...) + local mine = sourceGUID == self_player_guid if event == "UNIT_DIED" then RemoveAurasForGUID(destGUID) @@ -343,9 +344,8 @@ function OvaleAura:COMBAT_LOG_EVENT_UNFILTERED(event, ...) if unitId and not OVALE_UNIT_AURA_UNITS[unitId] then ScanUnitAuras(unitId, destGUID) end - elseif OVALE_CLEU_TICK_EVENTS[event] and sourceGUID == self_player_guid then - -- Periodic aura cast by the player. - -- Update the latest tick time of the aura. + elseif mine and OVALE_CLEU_TICK_EVENTS[event] then + -- Update the latest tick time of the periodic aura cast by the player. local spellId, spellName, spellSchool = select(12, ...) UpdateAuraTick(destGUID, spellId, timestamp) end -- 1.7.9.5