Small addon to keep your companion pet out at all times.
This is a work in progress, since I keep uncovering yet more things that summoning a pet will break.
Note that enemy players cannot see your companion pet while you are stealthed or invisible, so there is no point in dismissing them.
Leave a comment if you experience any issues with it!
0.93 - Updated for legion
0.8 - Added some delays and checks to make the GCD caused by summoning a pet less intrusive.
0.6 - Fixed a bug causing it to cancel the barbershop ui and added a check for vehicles just in case
0.5 - Attempt to prevent swapping battle team from summoning the pet in first slot, might cause taint
0.4 - No longer attempts to summon if you're on a flight path or stealthed, camouflaged or invisible. Removed check for cooldown because it was redundant.
0.3 - Fixed a typo in one of the function calls