Kill two birds with one stone. Change doppleganger so that it is cast on the pet:
Doppleganger
Casting | 2 seconds | |
Duration | 45 seconds | |
Recovery | 0.5 second | |
Recast | 2 minutes | |
| | |
Effects:
If the illusionist's pet dies during the duration of this spell, it is instantly replaced by a doppleganger. The doppleganger shares all of the pet's abilities and will continue to execute the last command given to the pet. A doppleganger that perishes while this spell is active will be replaced by another doppleganger. Any doppleganger that is created by this spell will not cease to exist at the end of the spell's duration.
If this was felt to be too weak, then the duration could be adjusted upward, or a temporary buff could be placed on the doppleganger for the duration of the spell (e.g., crit/reuse/damage bonus, damage ward, improved healing). You could also make this spell more general so that it could be cast on any class' pet.