ALL THE THINGS

ALL THE THINGS

31M Downloads

Lua error for items that have "Adventurer" as a class

battlepets opened this issue ยท 3 comments

commented

AllTheThings Lua error
"Azure Staff of the Arcana" and some other obscure items cause a lua error, because they have Evoker and Adventurer as classes that can equip the item. Adventurer, class 14, does not have an entry in RAID_CLASS_COLORS, so this causes an error at line 16677 when the addon attempts to write the tooltip line.

An ugly, easy fix is to change line 16676 to:
if colors and cl ~= 14 then --FIXME

That's not a good fix, but it avoids the error.

EDIT: Upon further testing, the error actually happens because of a bad return from GetClassInfo() before RAID_CLASS_COLORS, but the cause is the same, an unexpected stub class that WoW has tagged to some items.

commented

@ImUnicke ๐Ÿ‘€

commented

I had hope this class would be removed after BETA...

commented

Believe this was fixed when I encountered it myself heh.