From 361c977d0dccc99b436b0a9e8471d6995b4a01c5 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Mon, 8 Sep 2008 20:17:50 +0000 Subject: [PATCH] Added error checking for ERR_CANT_EQUIP_SKILL --- DressToKill.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DressToKill.lua b/DressToKill.lua index 5284d3f..74582c4 100644 --- a/DressToKill.lua +++ b/DressToKill.lua @@ -365,6 +365,10 @@ local function OnEvent(self, event, arg1) self.equipped = false debug(L["Clearing item since we lack dual wielding skill"]) ClearCursor() + elseif event == "UI_ERROR_MESSAGE" and arg1 == ERR_CANT_EQUIP_SKILL then + self.equipped = false + debug(L["Clearing item since we lack the skill to equip it"]) + ClearCursor() elseif event == "UI_ERROR_MESSAGE" then debug(L["Got an UI error message: %s"], arg1) end -- 1.7.9.5