From 223e3a0f7d67c0e5df528b7569f358be1b557034 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Thu, 18 Oct 2012 00:16:57 +0200 Subject: [PATCH] Fix an error with area-triggered quests --- Monomyth.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Monomyth.lua b/Monomyth.lua index 4da4530..5641d2c 100644 --- a/Monomyth.lua +++ b/Monomyth.lua @@ -113,11 +113,17 @@ Monomyth:Register('GOSSIP_CONFIRM', function(index) end end) +QuestFrame:UnregisterEvent('QUEST_DETAIL') Monomyth:Register('QUEST_DETAIL', function() - if(not QuestGetAutoAccept()) then - AcceptQuest() + if(not QuestGetAutoAccept() and not QuestIsFromAreaTrigger()) then + QuestFrame_OnEvent(QuestFrame, 'QUEST_DETAIL') + + -- We do this check again instead of improving the event handler + if(MonomythDB.toggle and not modifier) then + AcceptQuest() + end end -end) +end, true) Monomyth:Register('QUEST_ACCEPT_CONFIRM', AcceptQuest) -- 1.7.9.5