How do I get a spec's weapon skills?
I'm trying to make an addon to help equip gearSets, and it seems to work, except that it will try to equip items that the current spec can't actually equip. For armor, I'm just getting the subclass of the item with GetItemInfo(itemId) and comparing it to a kind of comparison table. I only did it that way because I was trying to get a working prototype, but I don't think that method is viable when it comes to weapon subtypes vs spec.
Does anyone have a solution for me, please? I suppose the underlying question here is, how do I check if an item is actually able to be equipped by the player with the current class and spec?
Last edited by pasiv : 01-07-23 at 02:23 AM.
|