From 850cbcf8375c3d9cd2a5c2d428b96e4ce3733022 Mon Sep 17 00:00:00 2001 From: Repooc Date: Mon, 3 Mar 2014 02:59:24 -0500 Subject: [PATCH] Fix non profession enchant warning to always show that enchant --- .../modules/characterframe/characterframe.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ElvUI_SLE/modules/characterframe/characterframe.lua b/ElvUI_SLE/modules/characterframe/characterframe.lua index a446c95..213a909 100755 --- a/ElvUI_SLE/modules/characterframe/characterframe.lua +++ b/ElvUI_SLE/modules/characterframe/characterframe.lua @@ -413,18 +413,21 @@ function CFO:ArmoryFrame_DataSetting() elseif slotName == 'ShoulderSlot' and CFO.PlayerProfession.Inscription and C.ItemEnchant_Profession_Inscription and CFO.PlayerProfession.Inscription >= C.ItemEnchant_Profession_Inscription.NeedLevel and not C.ItemEnchant_Profession_Inscription[enchantID] then ErrorDetected = true if E.db.sle.characterframeoptions.itemenchant.showwarning ~= false then + Slot.ItemEnchant:SetDrawLayer('OVERLAY') Slot.EnchantWarning:Show() Slot.EnchantWarning.Message = '|cff71d5ff'..GetSpellInfo(110400)..'|r : '..L['This is not profession only.'] end elseif slotName == 'WristSlot' and CFO.PlayerProfession.LeatherWorking and C.ItemEnchant_Profession_LeatherWorking and CFO.PlayerProfession.LeatherWorking >= C.ItemEnchant_Profession_LeatherWorking.NeedLevel and not C.ItemEnchant_Profession_LeatherWorking[enchantID] then ErrorDetected = true if E.db.sle.characterframeoptions.itemenchant.showwarning ~= false then + Slot.ItemEnchant:SetDrawLayer('OVERLAY') Slot.EnchantWarning:Show() Slot.EnchantWarning.Message = '|cff71d5ff'..GetSpellInfo(110423)..'|r : '..L['This is not profession only.'] end elseif slotName == 'BackSlot' and CFO.PlayerProfession.Tailoring and C.ItemEnchant_Profession_Tailoring and CFO.PlayerProfession.Tailoring >= C.ItemEnchant_Profession_Tailoring.NeedLevel and not C.ItemEnchant_Profession_Tailoring[enchantID] then ErrorDetected = true if E.db.sle.characterframeoptions.itemenchant.showwarning ~= false then + Slot.ItemEnchant:SetDrawLayer('OVERLAY') Slot.EnchantWarning:Show() Slot.EnchantWarning.Message = '|cff71d5ff'..GetSpellInfo(110426)..'|r : '..L['This is not profession only.'] end -- 1.7.9.5