]> granicus.if.org Git - nethack/commitdiff
"fix" B6004
authornethack.rankin <nethack.rankin>
Sun, 24 Feb 2002 00:51:20 +0000 (00:51 +0000)
committernethack.rankin <nethack.rankin>
Sun, 24 Feb 2002 00:51:20 +0000 (00:51 +0000)
     The comment about Book of the Dead's taming effect working
on nearby monsters when read while swallowed was wrong.  It was
only put there in the first place to avoid adding extra code to
suppress taming while swallowed when that was done for the other
methods of taming.  Any need for extra code here turns out to be
unnecessary due to the cansee() check.

src/spell.c

index 68967ff62a3f85386eeefb5cb8bb253fd06aa391..4b3ef429d947a3a7fb613ee530a2a458bb203310 100644 (file)
@@ -241,7 +241,6 @@ raise_dead:
        mm.y = u.uy;
        mkundead(&mm, TRUE, NO_MINVENT);
     } else if(book2->blessed) {
-       /* the Book operates on nearby monsters even if you're swallowed */
        for(mtmp = fmon; mtmp; mtmp = mtmp2) {
            mtmp2 = mtmp->nmon;         /* tamedog() changes chain */
            if (DEADMONSTER(mtmp)) continue;