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.
|