Closed XiconQoo closed 5 months ago
Yeah, was thinking about doing something like this as a quick fix, but kinda annoying that addons would have to check for the extra return values manually. I'm taking it most addon authors dont read lib changelogs. Also if there's ever more than 2 categories returned they'd have to use something like select("#", category)
to get the total count which hurts performance. (Unless the second return value is always an array/table only containing its shared DR categories, then you could just check if the array exist and use the #
operator directly. First return value would still work as normal for GetCategoryBySpellID as we'd just return category[1] value)
Guess there's not much else we can do since we cant break DRData or older DRList compability either. I'll take a further look into it this weekend when i get the time.
Mostly completed now in v1.5.0.
As you mentioned in https://github.com/wardz/DRList-1.0/blob/master/DRList-1.0/Spells.lua#L828 already, a spell having two categories is something DRList cannot handle right now.
My suggesetion is sth like this:
This would initially not break addons using DRList, considering they don't use DRList.spellList.