From 54feb64a0e5edb9c89ae1b08f4dfc982fd4c20a3 Mon Sep 17 00:00:00 2001 From: cohrs Date: Fri, 26 Mar 2004 18:15:29 +0000 Subject: [PATCH] U944: Tripping over cockatrice corpse does not petrify added the missing check in slip_or_trip for the case where the hero is not wearing boots --- doc/fixes35.0 | 1 + src/timeout.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/doc/fixes35.0 b/doc/fixes35.0 index 1795de496..d50051fd1 100644 --- a/doc/fixes35.0 +++ b/doc/fixes35.0 @@ -58,6 +58,7 @@ non-magical whistles do not work underwater try to restrict whistles and musical instruments to monsters that can blow thrown potions can sometimes hit a steed's saddle sync default documentation of "null" option with the code +tripping over a cockatrice corpse didn't petrify, even when not wearing boots Platform- and/or Interface-Specific Fixes diff --git a/src/timeout.c b/src/timeout.c index 78d2e1ca2..371971ad6 100644 --- a/src/timeout.c +++ b/src/timeout.c @@ -649,6 +649,12 @@ slip_or_trip() } else { You("trip over %s.", what); } + if (!uarmf && otmp->otyp == CORPSE && + touch_petrifies(&mons[otmp->corpsenm]) && !Stone_resistance) { + Sprintf(killer.name, "tripping over %s corpse", + an(mons[otmp->corpsenm].mname)); + instapetrify(killer.name); + } } else if (rn2(3) && is_ice(u.ux, u.uy)) { pline("%s %s%s on the ice.", #ifdef STEED -- 2.40.0