Stanzilla / WoWUIBugs

World of Warcraft UI Bug Tracker
153 stars 7 forks source link

GetItemStats and GetItemStatDelta not returning proper results when used on items with random enchanments. #546

Open shooter-z opened 2 months ago

shooter-z commented 2 months ago

GetItemStats and GetItemStatDelta not returning proper results when used on items with random enchanments. While the issue has been known for years, now it is also visible in blizzard own tooltips when comparing items.

Tested on Classic Season servers, build 54092 with no addons enabled.

local LEGS = "item:223250::::::2334:1138552192:46:::::::::"
-- Fel Mail Legs of Striking. 263 armor, 15 str, 15 agi, 15 sta
/dump GetItemStats(LEGS)

Empty result Random echancement item. All stats missing.

local BOOTS = "item:10332::::::::46:::::::::"
-- Scarlet Boots. 161 armor, 5 agi, 12 sta
/dump GetItemStats(BOOTS)

Stamina 12, agi 5 Static item. Stats present.


local BELT = "item:7370::::::769:1672026112:46:::::::::"
-- Elder's Sash of the Owl. 25 armor, 6 int, 6 spi
/dump GetItemStats(BELT)

Empty result Random echancement item. All stats missing.


local BELT2 = "item:13117::::::::46:::::::::"
-- Ogron's Sash. 71 armor, 9 agi, 9 sta, 9 str
/dump GetItemStats(BELT2)

9 agi, 9 sta, 9 str Static item. Stats present.

When doing comparision, random item is treated as no stats. /dump GetItemStatDelta(BELT,BELT2) -9 agi, -9 sta, -9 str

Same problem is visible in blizzard item comparision tooltips: https://i.imgur.com/DhBoxXT.png

Also, one would expect armor to be returned, but no luck.