Classic Stance Aoe macro

Why does the following macro allow me to WW from battle stance, but not Clap from zerker. I get an 'Ability is not ready yet. error.

#showtooltip [stance:1] Thunder Clap; [stance: 3] Whirlwind
/cast [stance:1, mod:alt] Berserker Stance; null
/cast [stance: 3, mod:alt] Battle Stance; null
/cast [stance: 1] Thunder Clap
/cast [stance: 3] Whirlwind

update: if I take out the line for Whirlwind, it will work, so I don’t understand
I’ve just decided to make two separate macros, to save myself the trouble…

#showtooltip [stance:1] Thunder Clap; [stance:3] Whirlwind
/cast [stance:1,mod:alt] Berserker Stance; [stance:3,mod:alt] Battle Stance;
/cast [stance:1] Thunder Clap; [stance:3] Whirlwind

nope that gives the same error, but it’s okay.

You’re getting a stance error because the whole macro evaluates before the commands execute so when you alt-click it’s attempting to switch stance and cross-cast the other stance’s aoe.
Try this

#showtooltip [stance:1] Thunder Clap; [stance:3] Whirlwind
/cast [mod:alt,stance:1] Berserker Stance; [mod:alt,stance:3] Battle Stance;
/cast [mod:alt,stance:1] Whirlwind; [mod:alt,stance:3] [stance:1] Thunder Clap; [stance:3] Whirlwind