]> granicus.if.org Git - nethack/commitdiff
identifying a wand of striking when it activates a statue trap
authorcohrs <cohrs>
Mon, 1 Apr 2002 01:22:39 +0000 (01:22 +0000)
committercohrs <cohrs>
Mon, 1 Apr 2002 01:22:39 +0000 (01:22 +0000)
doc/fixes34.1
src/zap.c

index 3d6150a1cf2dafd1a4ee71cf35c9ae2c6099d20e..2513124989eee65f22ddd1e37467fba3bf17db98 100644 (file)
@@ -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
index 2d2ccc40f69f4b3c3186b5a33a09e2612aa139cf..e67c470fa84e82d61843d02b1c68fba5343a8b7a 100644 (file)
--- 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;