From 30e6b021ddcf5631c5f6ef4ff8d65f132b013e5e Mon Sep 17 00:00:00 2001 From: parnic Date: Fri, 5 Nov 2010 00:25:48 +0000 Subject: [PATCH] - don't show heirloom items as disenchantable --- Breakables.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Breakables.lua b/Breakables.lua index 660948d..5eee166 100644 --- a/Breakables.lua +++ b/Breakables.lua @@ -17,6 +17,7 @@ local CanDisenchant = false -- item rarity must meet or surpass this to be considered for disenchantability (is that a word?) local RARITY_UNCOMMON = 2 +local RARITY_HEIRLOOM = 7 local IDX_LINK = 1 local IDX_COUNT = 2 @@ -650,7 +651,8 @@ function Breakables:FindBreakablesInSlot(bagId, slotId) self.myTooltip:SetBagItem(bagId, slotId) - if CanDisenchant and itemRarity and itemRarity >= RARITY_UNCOMMON and self:BreakableIsDisenchantable(itemType, itemLevel) then + if CanDisenchant and itemRarity and itemRarity >= RARITY_UNCOMMON and itemRarity < RARITY_HEIRLOOM + and self:BreakableIsDisenchantable(itemType, itemLevel) then local i = 1 local soulbound = false for i=1,5 do