Please scroll down for the download button
and more file information.
File Description
This addon was written in a short amount of time and was done to alleviate the hassle of writing the same code in macros for warriors when doing stance switching.
So for a macro that uses charge if you are in Battle stance and if not then it swaps you into to Battle Stance. You would normally have to type the following into the macro command
/script texture,name,isActive,isCastable = GetShapeshiftFormInfo(1); if isActive then CastSpellByName('Charge(Rank 1)'); else CastSpellByName('Battle Stance()'); end;
But with this addon the complexity is reduced and makes it more readable
/script if inBat() then CastSpellByName('Charge(Rank 1)'); else goBat() end;
This also reduced the possibility of accidently spelling something wrong, missing a space ( ) or comma (,) symbol. It hopefully makes stance switching macros more intuative and less cluttered. Plus with the reduced anount of characters in the macro you can add extra commands such as a shout before you chrage or weapon swapping commands.
For a more exhaustive list of warrior stance switching macros see: http://forums.worldofwarcraft.com/thread.aspx?fn=wow-warrior&t=74295&p=1&tmp=1#post74295
The commands available are inBat(), inDef(), inBer() for testing whether you are in BATtle/DEFensive/BERserker Stance
For going into the stances they are goBat(), goDef(), goBer()