Quantcast

Another quest item and fix for relic

Darthpred [09-03-16 - 20:14]
Another quest item and fix for relic
Filename
ElvUI_SLE/modules/professions/deconstruct.lua
diff --git a/ElvUI_SLE/modules/professions/deconstruct.lua b/ElvUI_SLE/modules/professions/deconstruct.lua
index 0ed8dc3..0f58e7d 100644
--- a/ElvUI_SLE/modules/professions/deconstruct.lua
+++ b/ElvUI_SLE/modules/professions/deconstruct.lua
@@ -64,6 +64,7 @@ Pr.ItemTable = {
 	--Quest dis
 	["Quest"] = {
 		["137221"] = true, --Ravencrest sigil
+		["137286"] = true, --Demon runes
 	},
 }
 Pr.Keys = {
@@ -305,6 +306,16 @@ function Pr:ConstructRealDecButton()
 	end
 end

+local function Get_ArtRelic()
+	local noItem = false
+	if T.select(2, T.GetItemInfo(132342)) == nil then noItem = true end
+	if noItem then
+		E:Delay(5, Get_ArtRelic)
+	else
+		relicItemTypeLocalized, relicItemSubTypeLocalized = select(6, GetItemInfo(132342))
+	end
+end
+
 function Pr:InitializeDeconstruct()
 	if not E.private.bags.enable then return end
 	Pr:Construct_BagButton()
@@ -324,5 +335,5 @@ function Pr:InitializeDeconstruct()
 	Pr:Blacklisting("DE")
 	Pr:Blacklisting("LOCK")

-	relicItemTypeLocalized, relicItemSubTypeLocalized = select(6, GetItemInfo(132342))
+	Get_ArtRelic()
 end
\ No newline at end of file