Skip to content

Commit

Permalink
U944: Tripping over cockatrice corpse does not petrify
Browse files Browse the repository at this point in the history
added the missing check in slip_or_trip for the case where the hero
is not wearing boots
  • Loading branch information
cohrs committed Mar 26, 2004
1 parent f349b74 commit 54feb64
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/fixes35.0
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions src/timeout.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 54feb64

Please sign in to comment.