Quantcast

Tackle the autoquest system

p3lim [12-30-10 - 19:56]
Tackle the autoquest system
Filename
Monomyth.lua
diff --git a/Monomyth.lua b/Monomyth.lua
index 142c115..4ece4cd 100644
--- a/Monomyth.lua
+++ b/Monomyth.lua
@@ -27,10 +27,12 @@ addon:Register('GOSSIP_SHOW', function()
 	end
 end)

+QuestFrame:UnregisterEvent('QUEST_DETAIL')
 addon:Register('QUEST_DETAIL', function()
 	if(QuestGetAutoAccept()) then
-		HideUIPanel(QuestFrame)
+		CloseQuest()
 	else
+		QuestFrame_OnEvent(nil, 'QUEST_DETAIL')
 		AcceptQuest()
 	end
 end)