A new study reveals that female fruit flies switch to ethanol-rich food when their eggs are threatened by predatory wasps, and that this adaptation is inherited across five generations of their offspring.