Quantcast

Update lockboxes and fix the check

Adrian L Lange [08-07-12 - 22:36]
Update lockboxes and fix the check
Filename
Lockpicking.lua
Molinari.lua
diff --git a/Lockpicking.lua b/Lockpicking.lua
index d569198..b6f33be 100644
--- a/Lockpicking.lua
+++ b/Lockpicking.lua
@@ -1,8 +1,10 @@
 local _, ns = ...

+-- http://www.wowhead.com/items?filter=cr=10:5;crs=1:2;crv=0:0
+
 local openable = {
-	['68729'] = true, -- MoP
-	['63349'] = true, -- MoP
+	['68729'] = true,
+	['63349'] = true,
 	['45986'] = true,
 	['43624'] = true,
 	['43622'] = true,
@@ -13,6 +15,7 @@ local openable = {
 	['5760'] = true,
 	['13918'] = true,
 	['5759'] = true,
+	['16885'] = true,
 	['5758'] = true,
 	['13875'] = true,
 	['4638'] = true,
@@ -28,8 +31,6 @@ local openable = {
 	['4632'] = true,
 	['88165'] = true,
 	['88567'] = true,
-	['88165'] = true,
-	['88567'] = true,
 }

 function ns.Openable(link)
diff --git a/Molinari.lua b/Molinari.lua
index dca99af..22d23a0 100644
--- a/Molinari.lua
+++ b/Molinari.lua
@@ -41,7 +41,7 @@ function button:PLAYER_LOGIN()
 				spell, r, g, b = GetSpellInfo(13262), 1/2, 1/2, 1
 			end

-			if(not spell and rogue and ns.Openable) then
+			if(not spell and rogue and ns.Openable(link)) then
 				spell, r, g, b = GetSpellInfo(1804), 0, 1, 1
 			end