]> granicus.if.org Git - nethack/commitdiff
striking ID followup
authorcohrs <cohrs>
Mon, 1 Apr 2002 15:32:51 +0000 (15:32 +0000)
committercohrs <cohrs>
Mon, 1 Apr 2002 15:32:51 +0000 (15:32 +0000)
- only ID wand of striking, not spellbook of force bolt, seeing the spell
cast does not make the book known

src/zap.c

index e67c470fa84e82d61843d02b1c68fba5343a8b7a..c3c8a5684adf7a9b08cac39652d5d5f07a24208f 100644 (file)
--- a/src/zap.c
+++ b/src/zap.c
@@ -1684,7 +1684,7 @@ 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 &&
+       if (t && t->ttyp == STATUE_TRAP && obj->otyp == WAN_STRIKING &&
            activate_statue_trap(t, tx, ty, TRUE))
            makeknown(obj->otyp);
     }