]> granicus.if.org Git - nethack/commitdiff
U537 - autosearching while digging a trapped statue
authorcohrs <cohrs>
Sun, 13 Jul 2003 05:17:49 +0000 (05:17 +0000)
committercohrs <cohrs>
Sun, 13 Jul 2003 05:17:49 +0000 (05:17 +0000)
Noticing a statue trap animate should stop your occupation.
That avoids the reported "You hit the  with all your might." message.

doc/fixes34.2
src/trap.c

index a684f235737dd0e66e83edf19792e1354de7d6a8..be0876ea073d156458a755951389154f7c3e1023 100644 (file)
@@ -100,6 +100,7 @@ travel command caches last position to make non-mouse less painful
 update pit trapped time when polymorphing to or from a monster that passes_walls
 show artifact hit message which affect the monster that swallowed the hero
 revived pet corpse from bones file should not be loyal to current player
+finding a statue trap you are about to dig should stop your occupation
 
 
 Platform- and/or Interface-Specific Fixes
index 383533de139eac41facdc39bd0a48f15b650c2a3..501f8947a75c31091115c95f996c43621b2e5890 100644 (file)
@@ -470,9 +470,11 @@ int *fail_reason;
        } else if (cause == ANIMATE_SHATTER)
            pline("Instead of shattering, the statue suddenly %s!",
                canspotmon(mon) ? "comes to life" : "disappears");
-       else /* cause == ANIMATE_NORMAL */
+       else /* cause == ANIMATE_NORMAL */
            You("find %s posing as a statue.",
                canspotmon(mon) ? a_monnam(mon) : something);
+           stop_occupation();
+       }
        /* avoid hiding under nothing */
        if (x == u.ux && y == u.uy &&
                Upolyd && hides_under(youmonst.data) && !OBJ_AT(x, y))