Skip to content

Commit

Permalink
sleeping gas trap vs steed
Browse files Browse the repository at this point in the history
     Noticed while checking out the report that you can #jump when riding
a sleeping steed:  hero's sleep resistance or magical breathing prevented
sleeping gas traps from hitting steed.  "You are enveloped in a cloud of
gas" but your steed is untouched?  That didn't make sense.
  • Loading branch information
nethack.rankin committed Feb 11, 2007
1 parent 33fde40 commit 00fc519
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions doc/fixes34.4
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ prevent long messages from triggering access violation or segmentation fault
cursed corpse wielded by a monster isn't welded to its hand or paw
fix grammar errors in samurai quest, wakarimasu ka?
fix spelling of Dr Dolittle
hero's sleep resistance shouldn't protect steed from sleeping gas trap


Platform- and/or Interface-Specific Fixes
Expand Down
8 changes: 4 additions & 4 deletions src/trap.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* SCCS Id: @(#)trap.c 3.5 2006/12/16 */
/* SCCS Id: @(#)trap.c 3.5 2007/02/10 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */

Expand Down Expand Up @@ -889,10 +889,10 @@ unsigned trflags;
seetrap(trap);
if(Sleep_resistance || breathless(youmonst.data)) {
You("are enveloped in a cloud of gas!");
break;
} else {
pline("A cloud of gas puts you to sleep!");
fall_asleep(-rnd(25), TRUE);
}
pline("A cloud of gas puts you to sleep!");
fall_asleep(-rnd(25), TRUE);
#ifdef STEED
(void) steedintrap(trap, (struct obj *)0);
#endif
Expand Down

0 comments on commit 00fc519

Please sign in to comment.