It shouldn't be possible to evolve or attach when getting ransacked. But the two units just died and had a death animation and sound effect and everything. I even skipped a turn just incase and yeah there gone. Pretty demoralizing. I believe it was 1 turn left before ransack was complete if that makes a difference.