Skip to content

Commit

Permalink
invocation vs being trapped
Browse files Browse the repository at this point in the history
     I can't find the report about this; I must have deleted it after
reading, or else recently reread something so old that I'm not going back
far enough now.  When you perform the invocation ritual to create the
stairs down to Moloch's Sanctum, any trap at your location gets deleted.
But if you were in a trapped state at the time then you got left in that
state.  Descending stairs doesn't check for traps so you wouldn't notice
unless you tried to move around on the same level first.  Then you'd get
"you're stuck in a pit/beartrap/web" even though it wasn't there anymore.
  • Loading branch information
nethack.rankin committed May 30, 2006
1 parent 12586f6 commit 4956ab8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/fixes34.4
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ temple donation can recover protection previously stolen by attrcurse attack
even when protection amount is so big that no increment would be given
display the invisible monster glyph ('I') whenever an unseen monster forces
poly'd hero out of hiding
escape the deleted trap after performing the invocation while trapped


Platform- and/or Interface-Specific Fixes
Expand Down
7 changes: 6 additions & 1 deletion src/mklev.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* SCCS Id: @(#)mklev.c 3.5 2006/03/06 */
/* SCCS Id: @(#)mklev.c 3.5 2006/05/29 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */

Expand Down Expand Up @@ -1437,6 +1437,11 @@ mkinvokearea()
pline_The("walls around you begin to bend and crumble!");
display_nhwindow(WIN_MESSAGE, TRUE);

/* any trap hero is stuck in will be going away now */
if (u.utrap) {
u.utrap = 0;
if (u.utraptype == TT_BURIEDBALL) buried_ball_to_punishment();
}
mkinvpos(xmin, ymin, 0); /* middle, before placing stairs */

for(dist = 1; dist < 7; dist++) {
Expand Down

0 comments on commit 4956ab8

Please sign in to comment.