]> granicus.if.org Git - nethack/commitdiff
nurse corpse vs blindness
authorPatR <rankin@nethack.org>
Mon, 14 Aug 2017 23:42:44 +0000 (16:42 -0700)
committerPatR <rankin@nethack.org>
Mon, 14 Aug 2017 23:42:44 +0000 (16:42 -0700)
The carrot patch made monsters (carnivorous pets, g.cubes) who eat
nurse corpses have temporary blindness be cured.  Do the same for the
hero.

src/eat.c

index 4e011899db146f55f89a66259fd33319c567bfbe..552ae147b0cd2aaaaa10a2c2f420b2f9f210d001 100644 (file)
--- a/src/eat.c
+++ b/src/eat.c
@@ -1,4 +1,4 @@
-/* NetHack 3.6 eat.c   $NHDT-Date: 1498778062 2017/06/29 23:14:22 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.178 $ */
+/* NetHack 3.6 eat.c   $NHDT-Date: 1502754159 2017/08/14 23:42:39 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.179 $ */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -979,6 +979,7 @@ register int pm;
             u.mh = u.mhmax;
         else
             u.uhp = u.uhpmax;
+        make_blinded(0L, !u.ucreamed);
         context.botl = 1;
         break;
     case PM_STALKER: