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.
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.
Empty result Random echancement item. All stats missing.
Stamina 12, agi 5 Static item. Stats present.
Empty result Random echancement item. All stats missing.
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 strSame 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.