Quantcast

In WoD we can't trust the item id to give us the right rarity.

Michael Tindal [11-17-14 - 07:21]
In WoD we can't trust the item id to give us the right rarity.
Filename
ElvUI_SLE/skins/blizzard/character.lua
diff --git a/ElvUI_SLE/skins/blizzard/character.lua b/ElvUI_SLE/skins/blizzard/character.lua
index 5fb9b3a..79df0d3 100644
--- a/ElvUI_SLE/skins/blizzard/character.lua
+++ b/ElvUI_SLE/skins/blizzard/character.lua
@@ -34,7 +34,7 @@ local function LoadSkin()
 			local itemId = GetInventoryItemID("player", slotId)

 			if itemId then
-				local _, _, rarity, _, _, _, _, _, _, _, _ = GetItemInfo(itemId)
+				local rarity = GetInventoryItemQuality("player", slotId);
 				if rarity and rarity > 1 then
 					target:SetBackdropBorderColor(GetItemQualityColor(rarity))
 				else