BM Hunter Macro

Hi - I’m trying to macro together Bestial Wrath with pet attack so that anytime I click Bestial Wrath the pets attach my target but some reason this macro is causing my pets to go then come back. I’m also trying to do something similar with kill command, but my companion pet keeps coming back. They are all working weirdly because I’m also trying to do it with Barbed and Cobra Shot.

Is there anything wrong with these macros

#showtooltip Bestial Wrath
/cancelaura aspect of the turtle
/cast Attack(Pet Command)
/use Bestial Wrath
/cast [@pettarget]Claw
/cast [@pettarget]Bite
/cast [@pettarget]Smack
/cast [@pettarget]Savage Rend

#showtooltip Kill Command
/cancelaura aspect of the turtle
/cast Attack(Pet Command)
/use Kill Command
/cast [@pettarget]Claw
/cast [@pettarget]Bite
/cast [@pettarget]Smack
/cast [@pettarget]Savage Rend

#showtooltip Barbed Shot
/cancelaura Aspect of the Turtle
/cast Attack(Pet Command)
/cast [target,exists] Barbed Shot
/startattack [@target,exists]
/cast [@pettarget]Claw
/cast [@pettarget]Bite
/cast [@pettarget]Smack
/cast [@pettarget]Savage Rend

#showtooltip Cobra Shot
/cancelaura Aspect of the Turtle
/cast Attack(Pet Command)
/cast [target,exists] Cobra Shot
/startattack [@target,exists]
/cast [@pettarget]Claw
/cast [@pettarget]Bite
/cast [@pettarget]Smack
/cast [@pettarget]Savage Rend

Change [@target,exists] to [harm]
/cast Attack(Pet Command) to /petattack

If you don’t want your pet to randomly attack stuff when you don’t have an enemy targeted I’d change it to:

#showtooltip
/cancelaura Aspect of the Turtle
/stopmacro [noharm]
/petattack
/cast Cobra Shot
/startattack
/cast [@pettarget]Claw
/cast [@pettarget]Bite
/cast [@pettarget]Smack
/cast [@pettarget]Savage Rend

I also personally wouldn’t bother putting the pet abilities on so many abilities, but that’s me.