Skip to content

Commit

Permalink
Add support for disenchanting profession equipment
Browse files Browse the repository at this point in the history
  • Loading branch information
p3lim committed Dec 2, 2022
1 parent 70ed869 commit adaa57e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion LibProcessable.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ local LE_ITEM_QUALITY_EPIC = LE_ITEM_QUALITY_EPIC or Enum.ItemQuality.Epic or 4
local LE_ITEM_CLASS_ARMOR = Enum.ItemClass.Armor or 4
local LE_ITEM_CLASS_WEAPON = Enum.ItemClass.Weapon or 2
local LE_ITEM_CLASS_GEM = Enum.ItemClass.Gem or 3
local LE_ITEM_CLASS_PROFESSION = Enum.ItemClass.Profession or 19
local LE_ITEM_ARMOR_COSMETIC = Enum.ItemClass.Cosmetic or 5
local LE_ITEM_SUBCLASS_ARTIFACT = 11 -- no existing constant for this one
local LE_ITEM_EQUIPLOC_SHIRT = Enum.InventoryType.IndexBodyType or 4
Expand Down Expand Up @@ -157,7 +158,8 @@ function lib:IsDisenchantable(item)
and C_Item.GetItemInventoryTypeByID(itemID) ~= LE_ITEM_EQUIPLOC_SHIRT
and (class == LE_ITEM_CLASS_WEAPON
or (class == LE_ITEM_CLASS_ARMOR and subClass ~= LE_ITEM_ARMOR_COSMETIC)
or (class == LE_ITEM_CLASS_GEM and subClass == LE_ITEM_SUBCLASS_ARTIFACT)))
or (class == LE_ITEM_CLASS_GEM and subClass == LE_ITEM_SUBCLASS_ARTIFACT)
or class == LE_ITEM_CLASS_PROFESSION))
end
end
end
Expand Down

0 comments on commit adaa57e

Please sign in to comment.