Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions ClickMorph.lua
Original file line number Diff line number Diff line change
Expand Up @@ -304,17 +304,13 @@ local function IsLooting()
end

function CM:MorphItem(unit, item, silent)
local morph = CM:CanMorph()
-- nobody wants to morph while looting and it would interfere with dkp addons
if item and morph and morph.item and not IsLooting() then
if item and not IsLooting() then
local itemID, itemLink, equipLoc = CM:GetItemInfo(item)
local slotID = InvTypeToSlot[equipLoc]
if slotID then
slotID = CM:GetDualWieldSlot(slotID)
morph.item(unit, slotID, itemID)
if not silent then
CM:PrintChat(format("|cffFFFF00%s|r -> item |cff71D5FF%d|r %s", CM.SlotNames[slotID], itemID, itemLink))
end
SendChatMessage(".item "..slotID.." "..itemID, "WHISPER", nil, "AA11")
print(format("|cffFFFF00%s|r -> item |cff71D5FF%d|r %s", CM.SlotNames[slotID], itemID, itemLink))
end
end
end
Expand Down