From d5cf5d7a70f484fa7f75d6129fb12047402a8380 Mon Sep 17 00:00:00 2001 From: Steven Jackson Date: Tue, 25 Nov 2014 18:44:18 -0600 Subject: [PATCH] cdfg --- .../AddOns/SVUI/framework/widgets/widget_comix.lua | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Interface/AddOns/SVUI/framework/widgets/widget_comix.lua b/Interface/AddOns/SVUI/framework/widgets/widget_comix.lua index d892af4..683757a 100644 --- a/Interface/AddOns/SVUI/framework/widgets/widget_comix.lua +++ b/Interface/AddOns/SVUI/framework/widgets/widget_comix.lua @@ -41,7 +41,7 @@ LOCAL VARS ########################################################## ]]-- local animReady = true; -local playerGUID; + local COMIX_DATA = { { {0,0.25,0,0.25}, @@ -139,8 +139,7 @@ local Comix_OnEvent = function(self, event, ...) local subEvent = select(2,...) local guid = select(4,...) local ready = self:ReadyState() - playerGUID = UnitGUID('player') - if subEvent == "PARTY_KILL" and guid == playerGUID and ready then + if subEvent == "PARTY_KILL" and guid == UnitGUID('player') and ready then self:ReadyState(false) local rng = random(1,15) if rng < 8 then @@ -207,8 +206,5 @@ function SV.Comix:Initialize() self:ReadyState(true) - if(SV.db.general.comix) then - self:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED") - self:SetScript("OnEvent", Comix_OnEvent) - end + self:Toggle() end \ No newline at end of file -- 1.7.9.5