From: Pasi Kallinen Date: Wed, 26 May 2021 06:00:26 +0000 (+0300) Subject: Check genocided zombies before raising the zombified corpse X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a71482af712ab02591aae7ab7e4688dcbcc65f15;p=nethack Check genocided zombies before raising the zombified corpse Fixes #520 --- diff --git a/src/do.c b/src/do.c index 72270855c..76ca2ddd9 100644 --- a/src/do.c +++ b/src/do.c @@ -1963,7 +1963,7 @@ zombify_mon(anything *arg, long timeout) struct obj *body = arg->a_obj; int zmon = zombie_form(&mons[body->corpsenm]); - if (zmon != NON_PM) { + if (zmon != NON_PM && !(g.mvitals[zmon].mvflags & G_GENOD)) { if (has_omid(body)) free_omid(body); if (has_omonst(body))