Quantcast

Added exceptions for Misc armor, namely tabards, shirts and holdable.

Salvatore Lopiparo [07-19-16 - 05:18]
Added exceptions for Misc armor, namely tabards, shirts and holdable.
Filename
code.lua
diff --git a/code.lua b/code.lua
index 8f67af1..2593231 100644
--- a/code.lua
+++ b/code.lua
@@ -99,6 +99,13 @@ local armorTypeSlots = {
 }


+local miscArmorExceptions = {
+	["INVTYPE_HOLDABLE"] = true,
+	["INVTYPE_BODY"] = true,
+	["INVTYPE_TABARD"] = true,
+}
+
+
 -----------------------------
 -- Tooltip text constants --
 -----------------------------
@@ -381,7 +388,7 @@ function CanIMogIt:IsTransmogable(itemLink)
 	end

 	local is_misc_subclass = CanIMogIt:IsArmorSubClass(MISC, itemLink)
-	if is_misc_subclass then
+	if is_misc_subclass and not miscArmorExceptions[CanIMogIt:GetSlotName(itemLink)] then
 		return false
 	end