One possible death reason in NetHack is “petrified by swallowing a cockatrice whole”.
However, when polymorphed into a purple worm and attacking a cockatrice, simply biting it the first time instakills me, giving just the normal “petrified by a cockatrice” death reason. How can I die after swallowing the cockatrice instead of just when I take a bite?
You need to use an engulfing attack on the cockatrice. Purple worms have both a Bite attack and an Engulf attack. My guess is that since it seems like you used the Bite attack, the bite caused you to be petrified before you had a chance to actually engulf the cockatrice.
As an alternative, trappers and lurkers above will also work, as their sole attack is an engulf attack. (Lots of other monsters have engulfing attacks as well, but everything aside from the aforementioned three types are petrification-resistant, which you obviously don’t want for this.)
Source : Link , Question Author : Wooble , Answer Author : CloudyMusic