Commit 277ae4ae authored by Simpy's avatar Simpy 🐹
Browse files

we have to use the item link to get grey item actual price, not item id

parent 0c507970
......@@ -1194,9 +1194,9 @@ function B:GetGraysValue()
for bag = 0, 4 do
for slot = 1, GetContainerNumSlots(bag) do
local itemID = GetContainerItemID(bag, slot)
if itemID then
local _, _, rarity, _, _, itype, _, _, _, _, itemPrice = GetItemInfo(itemID)
local itemLink = GetContainerItemLink(bag, slot)
if itemLink then
local _, _, rarity, _, _, itype, _, _, _, _, itemPrice = GetItemInfo(itemLink)
if itemPrice then
local stackCount = select(2, GetContainerItemInfo(bag, slot)) or 1
local stackPrice = itemPrice * stackCount
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment