Fixed Cosmetic item logic
Ann [07-17-16 - 22:32]
Fixed Cosmetic item logic
diff --git a/code.lua b/code.lua
index 4a256f6..d51df8a 100644
--- a/code.lua
+++ b/code.lua
@@ -267,7 +267,7 @@ end
function CanIMogIt:IsArmorAppropriateForPlayer(itemLink)
local playerArmorTypeID = CanIMogIt:GetPlayerArmorTypeName()
- if armorTypeSlots[CanIMogIt:GetSlotName(itemLink)] then
+ if armorTypeSlots[CanIMogIt:GetSlotName(itemLink)] and select(1, GetItemSubClassInfo(4, 5)) ~= select(7, GetItemInfo(itemLink)) then
return playerArmorTypeID == select(7, GetItemInfo(itemLink))
else
return true