From 0bfb0a90306416a135559bbd0e3aa0f03f81941d Mon Sep 17 00:00:00 2001 From: Darthpred Date: Tue, 16 Aug 2016 09:53:49 +0300 Subject: [PATCH] Returned enchant warning for weapons and limited them to 750 ilvl --- .../Armory/CharacterArmory/CharacterArmory.lua | 2 +- .../modules/Armory/InspectArmory/InspectArmory.lua | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ElvUI_SLE/modules/Armory/CharacterArmory/CharacterArmory.lua b/ElvUI_SLE/modules/Armory/CharacterArmory/CharacterArmory.lua index 37b3b69..cd93cb6 100644 --- a/ElvUI_SLE/modules/Armory/CharacterArmory/CharacterArmory.lua +++ b/ElvUI_SLE/modules/Armory/CharacterArmory/CharacterArmory.lua @@ -678,7 +678,7 @@ function CA:Update_Gear() if E.db.sle.Armory.Character.NoticeMissing ~= false then if not Slot.IsEnchanted and Info.Armory_Constants.EnchantableSlots[SlotName] then - if SlotName ~= 'SecondaryHandSlot' or (ItemType == "INVTYPE_WEAPONOFFHAND" or ItemType == "INVTYPE_WEAPON")then + if SlotName ~= 'SecondaryHandSlot' or ((ItemType == "INVTYPE_WEAPONOFFHAND" or ItemType == "INVTYPE_WEAPON") and (TrueItemLevel and TrueItemLevel <= 750) ) then ErrorDetected = true Slot.EnchantWarning:Show() diff --git a/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua b/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua index 3512973..998b60d 100644 --- a/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua +++ b/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua @@ -1915,13 +1915,13 @@ function IA:InspectFrame_DataSetting(DataTable) end ]] if E.db.sle.Armory.Inspect.NoticeMissing ~= false then - if not Slot.IsEnchanted and Info.Armory_Constants.EnchantableSlots[SlotName] and Slot.ItemEnchant then - if (SlotName == 'SecondaryHandSlot' and ItemType ~= 'INVTYPE_SHIELD' and ItemType ~= 'INVTYPE_HOLDABLE' and ItemType ~= 'INVTYPE_WEAPONOFFHAND' and ItemType ~= 'INVTYPE_RANGEDRIGHT') or SlotName ~= 'SecondaryHandSlot' then + if not Slot.IsEnchanted and Info.Armory_Constants.EnchantableSlots[SlotName] and Slot.Gradation.ItemEnchant then + if SlotName ~= 'SecondaryHandSlot' or ((ItemType == "INVTYPE_WEAPONOFFHAND" or ItemType == "INVTYPE_WEAPON") and (Slot.ILvL and Slot.ILvL <= 750) ) then ErrorDetected = true Slot.EnchantWarning:Show() if not E.db.sle.Armory.Character.Enchant.WarningIconOnly then - Slot.ItemEnchant:SetText('|cffff0000'..L["Not Enchanted"]) + Slot.Gradation.ItemEnchant:SetText('|cffff0000'..L["Not Enchanted"]) end end end -- 1.7.9.5