]> granicus.if.org Git - nethack/commitdiff
striking ID followup part 2
authorcohrs <cohrs>
Mon, 1 Apr 2002 16:51:10 +0000 (16:51 +0000)
committercohrs <cohrs>
Mon, 1 Apr 2002 16:51:10 +0000 (16:51 +0000)
- test WoStriking after activating statue, not before

src/zap.c

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