Returned enchant warning for weapons and limited them to 750 ilvl
Darthpred [08-16-16 - 06:53]
Returned enchant warning for weapons and limited them to 750 ilvl
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