Fix non profession enchant warning to always show that enchant
Repooc [03-03-14 - 07:59]
Fix non profession enchant warning to always show that enchant
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