GetItemStats deprecated and C_Item.GetItemStats not working in classic

Hello,

Im a bit confused as a addon creator. This function “GetItemStats” is now marked as deprecated in classic. However, the new function that should replace it “C_Item.GetItemStats”, is only available in TWW…

Does this mean its by design to not allow item stats to be fetched in the classic version going forward? I dont really see why (if this is the case), or if its a mistake?

I would really like some clarification on this, thanks :slight_smile:

(I know GetItemStats still work, but according to documentation : " This function was deprecated in patch 10.2.5 and will be removed in patch 11.0.2.")

https://warcraft.wiki.gg/wiki/API_C_Item.GetItemStats

This should cover ya for both cases.

local GetItemStats = GetItemStats or C_Item.GetItemStats

“C_Spell.GetItemStats” , do you mean C_Item.GetItemStats? Because there is no C_Spell.GetItemStats

Like i said, GetItemStats works right now, but will be removed in the near future, and C_Item.GetItemStats does not exist in classic…

I dont see how this answered any of my questions :thinking:

Yup, that’s a typo. Fixed.

The namespace version should exist before the old ones gets removed, that’s how Blizz does things. They’ve been regularly updating the Classic APIs to keep them inline with Retail, albeit with a delay.

Ah, ok so what you are saying is that it will eventually be replaced (when the old one is removed, which should be in patch 11.0.2.) ?

If thats the case, and if this is common, then i can rest easy :slight_smile:

Yup.

10chars

1 Like

Sweet thanks for the info :slight_smile: !

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.