From 6312058ed010e9fbdcd9ca5f946aaacc19e3f89b Mon Sep 17 00:00:00 2001 From: Darth Predator Date: Sun, 4 Dec 2016 16:54:33 +0300 Subject: [PATCH] Made DE lowest priority for deconstruct cause it broke the featured for people having 2 valid professions --- ElvUI_SLE/modules/professions/deconstruct.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ElvUI_SLE/modules/professions/deconstruct.lua b/ElvUI_SLE/modules/professions/deconstruct.lua index 1f768b3..efa6891 100644 --- a/ElvUI_SLE/modules/professions/deconstruct.lua +++ b/ElvUI_SLE/modules/professions/deconstruct.lua @@ -208,14 +208,7 @@ function Pr:DeconstructParser(...) 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)) - local isArtRelic = (class == relicItemTypeLocalized and subclass == relicItemSubTypeLocalized) - if normalItem or Pr.ItemTable["Quest"][id] or isArtRelic then - r, g, b = 1, 0, 0 - Pr:ApplyDeconstruct(link, Pr.DEname, r, g, b) - end - elseif Pr.LOCKname and lib:IsOpenable(id) and not Pr.BlacklistLOCK[item] then + if Pr.LOCKname and lib:IsOpenable(id) and not Pr.BlacklistLOCK[item] then r, g, b = 0, 1, 1 Pr:ApplyDeconstruct(link, Pr.LOCKname, r, g, b) elseif((Pr.SMITHname or Pr.JEWELname) and lib:IsOpenable(id)) then @@ -228,6 +221,13 @@ function Pr:DeconstructParser(...) elseif (Pr.MILLname and lib:IsMillable(id)) then r, g, b = 1, 0, 0 Pr:ApplyDeconstruct(link, Pr.MILLname, r, g, b) + elseif Pr.DEname then + local normalItem = (lib:IsDisenchantable(id) and Pr:IsBreakable(link)) + local isArtRelic = (class == relicItemTypeLocalized and subclass == relicItemSubTypeLocalized) + if normalItem or Pr.ItemTable["Quest"][id] or isArtRelic then + r, g, b = 1, 0, 0 + Pr:ApplyDeconstruct(link, Pr.DEname, r, g, b) + end end end end -- 1.7.9.5