cancelled zombification

Don't let cancelled zombies or cancelled liches create new zombies.
This commit is contained in:
PatR
2021-03-30 17:33:31 -07:00
parent 18b28b3355
commit 0479625c94
5 changed files with 34 additions and 33 deletions

View File

@@ -906,11 +906,11 @@ mdamagem(struct monst *magr, struct monst *mdef,
place_monster(mdef, mdef->mx, mdef->my);
mdef->mhp = 0;
}
g.zombify = !mwep && zombie_maker(magr->data)
&& ((mattk->aatyp == AT_TUCH
|| mattk->aatyp == AT_CLAW
|| mattk->aatyp == AT_BITE)
&& zombie_form(mdef->data) != NON_PM);
g.zombify = (!mwep && zombie_maker(magr)
&& (mattk->aatyp == AT_TUCH
|| mattk->aatyp == AT_CLAW
|| mattk->aatyp == AT_BITE)
&& zombie_form(mdef->data) != NON_PM);
monkilled(mdef, "", (int) mattk->adtyp);
g.zombify = FALSE; /* reset */
if (!DEADMONSTER(mdef))