diff --git a/doc/fixes34.4 b/doc/fixes34.4 index 1c1226ad1..0e8523e94 100644 --- a/doc/fixes34.4 +++ b/doc/fixes34.4 @@ -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 diff --git a/src/mklev.c b/src/mklev.c index b335fba10..ad2553f7d 100644 --- a/src/mklev.c +++ b/src/mklev.c @@ -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. */ @@ -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++) {