From 689069bdbe813026cd104c84285f8d8ca9223fdf Mon Sep 17 00:00:00 2001 From: p3lim Date: Tue, 28 Dec 2010 02:41:09 +0100 Subject: [PATCH] Accept dailies too :3 --- Monomyth.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 -- 1.7.9.5