if ppmax == 0 then
return HideManaBarAndStuff()
end
UpdateManaBarAndStuff()
The other stuff is still relevant for health, XP, etc. though since those shouldn't ever return a max of 0 under "normal" use conditions.
__________________ Retired author of too many addons.
Message me if you're interested in taking over one of my addons. Don’t message me about addon bugs or programming questions.