]> granicus.if.org Git - nethack/commitdiff
U944: Tripping over cockatrice corpse does not petrify
authorcohrs <cohrs>
Fri, 26 Mar 2004 18:15:29 +0000 (18:15 +0000)
committercohrs <cohrs>
Fri, 26 Mar 2004 18:15:29 +0000 (18:15 +0000)
added the missing check in slip_or_trip for the case where the hero
is not wearing boots

doc/fixes35.0
src/timeout.c

index 1795de496d37dd9e6a07b49732374596ab216f01..d50051fd113a4400d4e0edf1e541ebcbeb470171 100644 (file)
@@ -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
index 78d2e1ca2ed20d389be70ffaf9dbf274e0343b3b..371971ad65df18b8c39a840224e83828a0449984 100644 (file)
@@ -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