local powerbar = true if powerbar == true then if UnitClass("player") == "Priest" then f = CreateFrame("Frame", "FakePlayerFrame"); f.unit = "player"; PriestBarFrame:SetParent(FakePlayerFrame); PriestBarFrame_OnLoad(PriestBarFrame); PriestBarFrame:ClearAllPoints(); PriestBarFrame:SetPoint("CENTER", "UIParent", "CENTER", 0, -260); PriestBarFrame:SetScale(1.1); PriestBarFrame:Show(); end end
Any reason why it still shows shadow orbs when I'm disc?
It's creating the frame whenever the class is a Priest, as it's not specifying a particular spec.
Just tried making it detect a specific spec by using GetSpecialization and specID but I'm too noob to get it working
Hopefully someone else with better knowledge can fix that for you.
Not sure on what code is needed, however I saw this addon the other day which might be of interest to you, http://www.curse.com...s/wow/classicon
Not exactly what you're looking for, but it's quite similar at least.