Hi!
I don't know if I get, where your question aims to, but I would add something like
Code:
local classname, classFileName = UnitClassBase("player");
local b = false;
for i = 1, GetNumGlyphSockets() do
_, _, _, glyphSpellID, _ = GetGlyphSocketInfo(i);
if (glyphSpellID == 162532) then
b = true;
break;
end
end
if (classname ~= "Priest" or b == false) then
core:Hide();
end
I don't know if this was helpful, since I'm just beginning with LUA and creating addons, but I hope it!
Cheers,
odjur84
[Edit: You may want to use classFileName rather than classname, because classname is localized and classFileName isn't. But I don't know the output of classFileName.]