]> granicus.if.org Git - nethack/commitdiff
Give message trying to hurtle immovable monster
authorPasi Kallinen <paxed@alt.org>
Wed, 23 Feb 2022 11:42:05 +0000 (13:42 +0200)
committerPasi Kallinen <paxed@alt.org>
Wed, 23 Feb 2022 11:42:08 +0000 (13:42 +0200)
If the monster is too big, stuck to hero, or trapped.

src/dothrow.c

index faf72cc78a2606a05efcebeb56571f8d594db225..1fdf63d99110bdbab1c38f60ba9f164c14b8f1ef 100644 (file)
@@ -1016,8 +1016,11 @@ mhurtle(struct monst *mon, int dx, int dy, int range)
     /* Is the monster stuck or too heavy to push?
      * (very large monsters have too much inertia, even floaters and flyers)
      */
-    if (mon->data->msize >= MZ_HUGE || mon == u.ustuck || mon->mtrapped)
+    if (mon->data->msize >= MZ_HUGE || mon == u.ustuck || mon->mtrapped) {
+        if (canseemon(mon))
+            pline("%s doesn't budge!", Monnam(mon));
         return;
+    }
 
     /* Make sure dx and dy are [-1,0,1] */
     dx = sgn(dx);