Quantcast

* 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)

James Whitehead II [11-18-08 - 15:50]
* 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)
Filename
DressToKill.lua
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