From: cohrs Date: Mon, 1 Apr 2002 01:22:39 +0000 (+0000) Subject: identifying a wand of striking when it activates a statue trap X-Git-Tag: MOVE2GIT~2834 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a5a051791579696bd18ee4cf768a151435d9f90;p=nethack identifying a wand of striking when it activates a statue trap --- diff --git a/doc/fixes34.1 b/doc/fixes34.1 index 3d6150a1c..251312498 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -43,6 +43,7 @@ prevent panic if tombstone window cannot be created clarify travel command behavior in the Guidebook touch_artifact checks needed when snagging w/bullwhip and stealing cannot trip over submerged objects if you're water walking +wand of striking was not identified if it activated a statue trap Platform- and/or Interface-Specific Fixes diff --git a/src/zap.c b/src/zap.c index 2d2ccc40f..e67c470fa 100644 --- a/src/zap.c +++ b/src/zap.c @@ -1684,8 +1684,9 @@ bhitpile(obj,fhito,tx,ty) because that last call might end up operating on our `next_obj' (below), rather than on the current object, if it happens to encounter a statue which mustn't become animated. */ - if (t && t->ttyp == STATUE_TRAP) - (void) activate_statue_trap(t, tx, ty, TRUE); + if (t && t->ttyp == STATUE_TRAP && + activate_statue_trap(t, tx, ty, TRUE)) + makeknown(obj->otyp); } poly_zapped = -1;