It is a Body, Bodies are always active. So if they evolve, then you gain their HP right as they evove. Same stands if they retreat or switch, you copy the new Defending. Also, there is no time in which they have no defending, so your HP does not revert back to 60 during their switch/retreat.