From 3d4c14065df1d72454056fde7e3d98ccc810c1d7 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Sun, 5 Feb 2012 15:47:01 +0100 Subject: [PATCH] Disable quest item feature when visiting the bank --- Monomyth.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Monomyth.lua b/Monomyth.lua index 1870c2a..6a8555a 100644 --- a/Monomyth.lua +++ b/Monomyth.lua @@ -133,8 +133,18 @@ Monomyth:Register('QUEST_AUTOCOMPLETE', function(id) end end) +local atBank +Monomyth:Register('BANKFRAME_OPENED', function() + atBank = true +end) + +Monomyth:Register('BANKFRAME_CLOSED', function() + atBank = false +end) + Monomyth:Register('BAG_UPDATE', function(bag) if(bag < 0) then return end + if(atBank) then return end QuestCompletedDB = QuestCompletedDB or {} -- 1.7.9.5