Post by Wildhorn
Can not have decision based macros. Blizzard banned these after BC was released. Having programmers logic like what you want in an If, Then, Else statement can not work in WoW.
lol. IfThenElse works in wow idiot. How do you think addons works?
BUT, you cant play with frames while in combat. It is prohibited by the game to prevent a too easy automatisation of the game. So no, you cant hide/show bars based on your combat status.
Here is some documentation about it: http://www.wowwiki.com/API_InCombatLockdown
While in combat:
* Programatic modification of macros or bindings is not allowed.
* Some things can't be done on "Protected" frames, their parents, or any frame they are anchored to. These include, but are not restricted to:
o Hiding the frame using Hide widget method.
o Showing the frame using Show widget method.
o Changing the frame's attributes (custom attributes are used by Blizzard secure templates to set up their behavior).
o Moving the frame by resetting frame's points or anchors (movements initiated by user are still allowed while in combat).