]> granicus.if.org Git - nethack/commitdiff
Check genocided zombies before raising the zombified corpse
authorPasi Kallinen <paxed@alt.org>
Wed, 26 May 2021 06:00:26 +0000 (09:00 +0300)
committerPasi Kallinen <paxed@alt.org>
Wed, 26 May 2021 06:02:38 +0000 (09:02 +0300)
Fixes #520

src/do.c

index 72270855c1286894be397b64d01b573c7cf3c8bf..76ca2ddd99d3d6ad76f4285179066c247feef67d 100644 (file)
--- 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))