Quantcast

Disable quest item feature when visiting the bank

Adrian L Lange [02-05-12 - 14:47]
Disable quest item feature when visiting the bank
Filename
Monomyth.lua
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 {}