From 6e098ed10e8b0b79445dac92b4040b76a52c6174 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Sun, 4 Sep 2016 08:34:55 +0300 Subject: [PATCH] More failsafes for deconstruct. Should make vendor items not throwing errors. Related to #313 --- ElvUI_SLE/modules/professions/deconstruct.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ElvUI_SLE/modules/professions/deconstruct.lua b/ElvUI_SLE/modules/professions/deconstruct.lua index 0f58e7d..bebd33d 100644 --- a/ElvUI_SLE/modules/professions/deconstruct.lua +++ b/ElvUI_SLE/modules/professions/deconstruct.lua @@ -199,11 +199,13 @@ function Pr:IsUnlockable(itemLink) end function Pr:DeconstructParser(...) + if not Pr.DeconstructMode then return end local item, link = self:GetItem() local class, subclass = select(6, T.GetItemInfo(item)) if not link then return end local itemString = T.match(link, "item[%-?%d:]+") local _, id = T.split(":", itemString) + if not id or id == "" then return end if(item and not T.InCombatLockdown()) and (Pr.DeconstructMode == true or (E.global.sle.LOCK.TradeOpen and self:GetOwner():GetName() == "TradeRecipientItem7ItemButton")) then if Pr.DEname then local normalItem = (lib:IsDisenchantable(id) and Pr:IsBreakable(link)) -- 1.7.9.5