View Single Post
07-15-16, 11:36 AM   #5
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
You can track your pets through combat log events (probably SPELL_SUMMON), and mask their flags for ownership to see if they belong to the player.

Insert their GUID into a table when they spawn and remove them when they despawn; if they're on a timer just keep track of the timestamp and remove them after a set amount of time.

Last edited by semlar : 07-15-16 at 11:38 AM.