From 3d0c6fbcf69edf888636091e11c22001a3a446a9 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Mon, 17 Sep 2012 00:29:29 +0200 Subject: [PATCH] Some adjustments --- oUF_P3lim.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua index bc906cb..81a4ed8 100644 --- a/oUF_P3lim.lua +++ b/oUF_P3lim.lua @@ -71,13 +71,14 @@ do [114236] = true, -- Shred! } + local min = math.min local count, form = 0 local playerGUID function UpdateCombo(self, event, ...) - if(event == 'COMBAT_LOG_EVENT_UNFILTERED' and form) then + if(event == 'COMBAT_LOG_EVENT_UNFILTERED') then local _, param, _, source, _, _, _, destination, _, _, _, spell, _, _, _, _, _, _, _, _, crit = ... - if(param == 'SPELL_DAMAGE' and source == playerGUID and destination == UnitGUID('target')) then + if(form and param == 'SPELL_DAMAGE' and source == playerGUID and destination == UnitGUID('target')) then if(spells[spell] and crit) then count = min(count + 1, 5) end -- 1.7.9.5