Check genocided zombies before raising the zombified corpse

Fixes #520
This commit is contained in:
Pasi Kallinen
2021-05-26 09:00:26 +03:00
parent 0cdb91aa50
commit a71482af71

View File

@@ -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))