]> granicus.if.org Git - nethack/commitdiff
Prevent kraken farming
authorPasi Kallinen <paxed@alt.org>
Tue, 24 Nov 2015 09:35:45 +0000 (11:35 +0200)
committerPasi Kallinen <paxed@alt.org>
Tue, 24 Nov 2015 09:35:50 +0000 (11:35 +0200)
...or at least make it more inconvenient, by preventing fishy
creatures from revival by undead turning unless they're in a pool.

src/zap.c

index eb3d20e419c5e7141837204b68483043ef108c27..474f19563e33a0c5d1d2e8e3e64ed66aeeea7c98 100644 (file)
--- a/src/zap.c
+++ b/src/zap.c
@@ -704,6 +704,13 @@ boolean by_hero;
             x = xy.x, y = xy.y;
     }
 
+    if (mons[montype].mlet == S_EEL && !IS_POOL(levl[x][y].typ)) {
+        if (by_hero && cansee(x,y))
+            pline("%s twitches feebly.",
+                upstart(corpse_xname(corpse, (const char *) 0, CXN_PFX_THE)));
+        return (struct monst *) 0;
+    }
+
     if (cant_revive(&montype, TRUE, corpse)) {
         /* make a zombie or doppelganger instead */
         /* note: montype has changed; mptr keeps old value for newcham() */