From 1191646cd9c3ebb74a851b6e89857ba9c0e03767 Mon Sep 17 00:00:00 2001 From: Sander Date: Wed, 30 Jun 2021 13:37:08 +0200 Subject: [PATCH] POC Use the external iMorph with ClickMorph Very dirty way to update this version to support the latest external iMorph. --- ClickMorph.lua | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/ClickMorph.lua b/ClickMorph.lua index b7fc07e..0c5706f 100644 --- a/ClickMorph.lua +++ b/ClickMorph.lua @@ -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