Hi all,
Just a quick question here.
Would it be possible to create a class specific addon?
I mean of course you can set addons to load from addon control panel for each character, but I want to create something that only loads for specific class.
Currently, I've stated the following lines of code at the top of each Lua files for one of my addon.
Lua Code:
if select(2, UnitClass("player")) ~= "ROGUE" then
return;
end
Those lines are written on every localization, core, etc and it honestly doesn't mean that the addon "WON'T BE LOADED". The addon would still be loaded, but only skips rest of the code if the class doesn't match.
Would there be any possible solution to this?
Thank you!