This addon is intended to keep your Warlock pet from chasing after fleeing, feared, or sheeped mobs. When a humanoid mob is close to death, it may run, causing your pet to chase after, and generally getting more aggro. This addon will make your pet follow you should a mob try to run away from fear or being sheeped. If the mob returns and attacks you or your pet, the pet will resume combat (provided it is in defensive mode).
If you cast "Fear" on a mob, PetLeash will detect the Fear debuff and command your pet to follow you as well, this also applies to mobs that are sheeped. Also, this will command your pet to follow you if a mob becomes charmed (no more breaking mezzes).
No longer will your pet run after mobs like a chicken with his head cut off.
..or use the PetLeash Toggle Checkbox above the follow button on your petbar.
Thanks to Ska Demon for his help with the debuff checking traversal.
Future Plans: To add any debuffs that may cause mobs to run, or become charmed. To detect if the pet has become feared, charmed, etc, and command it to return to you. If there are any debuffs that I missed, drop me a PM here, and I'll try to handle those as well.