Random Poly macro

I’m trying to get all my Polymorph variants in one macro to fit within the 255 character limit. I want it set the target I cast it on as my focus. When I hold down shift I want it to clear the focus and set the new target I have selected as my focus. So far I have this one that works fine.

#showtooltip
/clearfocus [mod:shift]
/focus [target=focus,noexists]; [target=focus,dead]
/castrandom [target=focus] Polymorph(Turtle), Polymorph, Polymorph(Rabbit), Polymorph(Pig), Polymorph(Black Cat), Polymorph(Polar Bear Cub), Polymorph(Monkey)

I still dont have my Polymorph,Polymorph(Porcupine) and Polymorph(Bumblebee) in it as it won’t fit in the limit. I tried using spell ID numbers and that didn’t work. Any Ideas to get it to fit?

Can change the target= to @ and trim some white space but that’s the only optimizations I’m seeing

I didn’t think of that at all. I’ll use that and maybe get another variant in there. That will save me some space either way.

For some reason when I string all of my Polymorphs together with just the /castrandom It fails to cast Porcupine and bumble bee in the rotation. Must be something on Blizzards end I’m not seeing. It didn’t even work when I used the addon Longmacro or whatever its called. will cast all except porcupine and bumblebee.