mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-13 08:50:50 +00:00
api: use backported getiteminfo for all versions
This commit is contained in:
@@ -135,7 +135,7 @@ pfUI:RegisterSkin("Character", "vanilla:tbc", function ()
|
||||
if ShaguScore and GetInventoryItemLink("player", slotId) and slot.scoreText then
|
||||
local _, _, itemID = string.find(GetInventoryItemLink("player", slotId), "item:(%d+):%d+:%d+:%d+")
|
||||
local itemLevel = ShaguScore.Database[tonumber(itemID)] or 0
|
||||
local _, _, itemRarity, _, _, _, _, itemSlot, _ = GetItemInfo(itemID)
|
||||
local _, _, itemRarity, _, _, _, _, _, itemSlot, _ = GetItemInfo(itemID)
|
||||
local r,g,b = GetItemQualityColor((itemRarity or 1))
|
||||
local score = ShaguScore:Calculate(itemSlot, itemRarity, itemLevel)
|
||||
if score and score > 0 then
|
||||
|
||||
Reference in New Issue
Block a user