]> granicus.if.org Git - nethack/commitdiff
fix github issue #410 - mon throwing c'trice egg
authorPatR <rankin@nethack.org>
Sat, 14 Nov 2020 00:52:45 +0000 (16:52 -0800)
committerPatR <rankin@nethack.org>
Sat, 14 Nov 2020 00:52:45 +0000 (16:52 -0800)
If a monster threw a cocktrice egg that hit and petrified another
monster, the hero would credit (experience) and blame (possible
alignment penalty, &c) for it.

Fixes #410

doc/fixes37.0
src/mthrowu.c

index 34885e5c8fbf39c8237156aa23fb8688910eca9a..3903646301dac32275346e02b97ab7ddd530b7e1 100644 (file)
@@ -1,4 +1,4 @@
-NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.350 $ $NHDT-Date: 1605184219 2020/11/12 12:30:19 $
+NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.352 $ $NHDT-Date: 1605315160 2020/11/14 00:52:40 $
 
 General Fixes and Modified Features
 -----------------------------------
@@ -293,6 +293,8 @@ attacking non-adjacent concealed mimic by applying a polearm would make the
 hero could break a wand ("raising the wand high over your head, you break it
        in two") even if hands were welded to a two-handed weapon or to a
        one-handed weapon and also to a shield
+if a monster threw a cocktrice egg at the hero but hit and petrified another
+       monster, the hero would get credit/blame for killing it
 
 
 Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
index 4bae7d788557ad74087b8285263caf4083404a79..66ef9d9499167756e16aaee8c73e534ae9ea6c6e 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.7 mthrowu.c       $NHDT-Date: 1596498189 2020/08/03 23:43:09 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.102 $ */
+/* NetHack 3.7 mthrowu.c       $NHDT-Date: 1605315160 2020/11/14 00:52:40 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.103 $ */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /*-Copyright (c) Pasi Kallinen, 2016. */
 /* NetHack may be freely redistributed.  See license for details. */
@@ -395,8 +395,8 @@ boolean verbose;    /* give message(s) even when you can't see what happened */
             }
         }
         if (otmp->otyp == EGG && touch_petrifies(&mons[otmp->corpsenm])) {
-            if (!munstone(mtmp, TRUE))
-                minstapetrify(mtmp, TRUE);
+            if (!munstone(mtmp, FALSE))
+                minstapetrify(mtmp, FALSE);
             if (resists_ston(mtmp))
                 damage = 0;
         }