Use DEADMONSTER instead of checking mhp
This commit is contained in:
@@ -1355,7 +1355,7 @@ dogaze()
|
||||
(void) destroy_mitem(mtmp, SPBOOK_CLASS, AD_FIRE);
|
||||
if (dmg)
|
||||
mtmp->mhp -= dmg;
|
||||
if (mtmp->mhp <= 0)
|
||||
if (DEADMONSTER(mtmp))
|
||||
killed(mtmp);
|
||||
}
|
||||
/* For consistency with passive() in uhitm.c, this only
|
||||
@@ -1517,7 +1517,7 @@ domindblast()
|
||||
u_sen ? "telepathy"
|
||||
: telepathic(mtmp->data) ? "latent telepathy" : "mind");
|
||||
mtmp->mhp -= rnd(15);
|
||||
if (mtmp->mhp <= 0)
|
||||
if (DEADMONSTER(mtmp))
|
||||
killed(mtmp);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user