]> granicus.if.org Git - nethack/commitdiff
Wall of water stops monster hurtling
authorPasi Kallinen <paxed@alt.org>
Wed, 23 Feb 2022 11:54:07 +0000 (13:54 +0200)
committerPasi Kallinen <paxed@alt.org>
Wed, 23 Feb 2022 11:54:07 +0000 (13:54 +0200)
src/dothrow.c

index 1fdf63d99110bdbab1c38f60ba9f164c14b8f1ef..dcd80ef554473c29c8e59413d57491807886f3ae 100644 (file)
@@ -915,7 +915,7 @@ mhurtle_step(genericptr_t arg, int x, int y)
         set_apparxy(mon);
         if (minliquid(mon))
             return FALSE;
-        return TRUE;
+        return is_waterwall(x, y) ? FALSE : TRUE;
     }
 
     /* TODO: Treat walls, doors, iron bars, etc. specially