another petrification bit (trunk only)

Noticed while tracking down the "you die..." situation.  Duplicating
instapetrify()'s resistance checks is useful here, but there's no need to
also duplicate its death handling.
This commit is contained in:
nethack.rankin
2006-11-10 05:23:13 +00:00
parent 2fa9bd0301
commit a29bf9d63d

View File

@@ -440,12 +440,10 @@ xchar x, y;
if (poly_when_stoned(youmonst.data) && polymon(PM_STONE_GOLEM)) {
; /* hero has been transformed but kick continues */
} else {
You("turn to stone...");
killer.format = KILLED_BY;
/* normalize body shape here; foot, not body_part(FOOT) */
Sprintf(killer.name, "kicking %s barefoot",
killer_xname(kickobj));
done(STONING);
instapetrify(killer.name);
}
}