From 7016d72fefbb78dba1846ec1b6d18ffd62686467 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Tue, 18 Nov 2008 15:50:58 +0000 Subject: [PATCH] * Recover from errors when the API tells us to equip something in a slot (such as 3.0.X where it says a 2-Hander can go in the offhand due to Titan's Grip) --- DressToKill.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DressToKill.lua b/DressToKill.lua index 74582c4..ddb7ed9 100644 --- a/DressToKill.lua +++ b/DressToKill.lua @@ -370,6 +370,10 @@ local function OnEvent(self, event, arg1) debug(L["Clearing item since we lack the skill to equip it"]) ClearCursor() elseif event == "UI_ERROR_MESSAGE" then + self.equipped = false + debug(L["Clearing item due to API saying it is valid for an invalid slot"]) + ClearCursor() + elseif event == "UI_ERROR_MESSAGE" then debug(L["Got an UI error message: %s"], arg1) end -- 1.7.9.5