Also notice that spirit mend is only 25 yard range…so if you are at 40 yards dealing damage and cast spirit mend on yourself your pet will run back towards you - cast spirit mend on you - and then run back to its original target.
That could be what you are seeing when you say “pet runs back towards me”?
I try to bundle hunter macros for max effect when possible (harder now since they put almost everything on the GCD)
#showtooltip Spirit Mend
/cast [@player] Spirit Mend
/cast Mend Pet
This heals both me and the pet with 1 button push.
The mouseover target Spirit Mend macro above works too to throw heals on players or your pet (just hover mouse over their portraits and it works that way too) Spirit Mend + Mend Pet heals your pet to full very quickly.
#showtooltip Disengage
/cast petattack
/startattack
/cast Dash
/cast Growl
/cast Tar Trap
/cast Disengage
/cast Claw
/cast Smack
/cast Bite
This one drops a tar trap / gets my pet attacking and growling if enemies are mobs / then disengages me all with 1 button press. Concussive shot works here too but I use tar trap for slows on multiple mobs…plus it has a longer cooldown than concussive shot - so its nice to get that timer going so I can use it again ASAP if needed.
I put
/startattack
/petattack
/cast Claw
/cast Bite
/cast Smack
on all abilities so as soon as they are off cooldown they go off. Like this =
#showtooltip Barbed Shot
/startattack
/petattack
/cast Barbed Shot
/cast Claw
/cast Smack
/cast Bite
I add /cast Growl to that exact macro for my Kill Command (just remember to switch it out in dungeons b/c it obviously causes your pet to growl) I like growl on KC since the pet dashes to attack the target and a growl makes sure it stops coming at me…I can also spam that button even if KC is on cooldown and the attack and growl parts still work.
#showtooltip Misdirection
/cast [@pet] Misdirection
/cast Mend Pet
Obviously this one gets a heal rolling on the pet since I am dumping aggro on it…
#showtooltip Feign Death
/cast Feign Death
/cast Play Dead
This one is FD for me and pet simultaneously.
I made one for my azurite neck too =
/cast [@player] Concentrated Flame
This one drops the heal on me directly even if I’m DPSing a target - so I have the regular Concentrated Flame button to do damage to mobs in my damage ability row and this macro next to my exhilaration / spirit mend buttons for a little extra on demand self healing.
#showtooltip Pocket-Sized Computation Device
/stopcasting
/stopcasting
/use Pocket-Sized Computation Device
I use this one for the death ray ability on my mechagon trinket.
I have more but these are all I can remember off the top of my head.
Sorry if I mistyped any of these - obviously in macros spelling and punctuation has to be error free for them to work and I am just going from memory here.
Play around and see what abilities you can combine…I just get in front of a target dummy and play around until it works or until I decide its just not possible hehe
Hope some of these help you out. Happy hunting!