Quantcast

Accept dailies too :3

p3lim [12-28-10 - 01:41]
Accept dailies too :3
Filename
Monomyth.lua
diff --git a/Monomyth.lua b/Monomyth.lua
index 245f40e..142c115 100644
--- a/Monomyth.lua
+++ b/Monomyth.lua
@@ -18,11 +18,9 @@ addon:Register('GOSSIP_SHOW', function()
 		local button = _G['GossipTitleButton' .. index]

 		if(button and button:IsVisible()) then
-			local icon = _G['GossipTitleButton' .. index .. 'GossipIcon']
-
-			if(button.type == 'Available' and icon:GetTexture() == AVAILABLE) then
+			if(button.type == 'Available') then
 				return button:Click()
-			elseif(button.type == 'Active' and icon:GetTexture() == COMPLETE) then
+			elseif(button.type == 'Active' and _G['GossipTitleButton' .. index .. 'GossipIcon']:GetTexture() == COMPLETE) then
 				return button:Click()
 			end
 		end