Skip to content

Commit

Permalink
Fixed OneClickDisenchanting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wetxius committed Apr 11, 2017
1 parent 1ba56c9 commit 0850de4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ShestakUI/Modules/Misc/OneClickDisenchanting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ function button:PLAYER_LOGIN()
if not spell and milling and (GetItemCount(tonumber(string.match(link, 'item:(%d+):'))) >= 5) then
spell, r, g, b = GetSpellInfo(51005), 0.5, 1, 0.5
elseif not spell and disenchanter then
local _, _, itemRarity, _, _, itemType, _, _, _, _, _, class = GetItemInfo(item)
if not (itemType == ARMOR or itemType == ENCHSLOT_WEAPON or class == 3) or not (itemRarity and (itemRarity > 1 and (itemRarity < 5 or itemRarity == 6))) then return end
local _, _, itemRarity, _, _, _, _, _, _, _, _, class, subClass = GetItemInfo(item)
if not (class == LE_ITEM_CLASS_WEAPON or class == LE_ITEM_CLASS_ARMOR or (class == 3 and subClass == 11)) or not (itemRarity and (itemRarity > 1 and (itemRarity < 5 or itemRarity == 6))) then return end
spell, r, g, b = GetSpellInfo(13262), 0.5, 0.5, 1
elseif not spell and rogue then
for index = 1, self:NumLines() do
Expand Down

0 comments on commit 0850de4

Please sign in to comment.