Skip to content

Commit

Permalink
Fix matching against 2h maces
Browse files Browse the repository at this point in the history
  • Loading branch information
p3lim committed Jul 23, 2021
1 parent a8f988c commit 1dab8ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LibProcessable.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function lib:IsDisenchantable(item)
local _, _, quality, _, _, _, _, _, equipLoc, _, _, class, subClass = GetItemInfo(item)
return quality and ((quality >= LE_ITEM_QUALITY_UNCOMMON and quality <= LE_ITEM_QUALITY_EPIC)
and equipLoc ~= LE_ITEM_EQUIPLOC_SHIRT
and ((class == LE_ITEM_CLASS_WEAPON and subClass ~= LE_ITEM_ARMOR_COSMETIC)
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)))
end
Expand Down

0 comments on commit 1dab8ca

Please sign in to comment.