Quantcast

cdfg

Steven Jackson [11-26-14 - 00:44]
cdfg
Filename
Interface/AddOns/SVUI/framework/widgets/widget_comix.lua
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