From: Pasi Kallinen Date: Wed, 23 Feb 2022 11:42:05 +0000 (+0200) Subject: Give message trying to hurtle immovable monster X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e965f6cf440e8249c51b4a37ae22c342f8904f69;p=nethack Give message trying to hurtle immovable monster If the monster is too big, stuck to hero, or trapped. --- diff --git a/src/dothrow.c b/src/dothrow.c index faf72cc78..1fdf63d99 100644 --- a/src/dothrow.c +++ b/src/dothrow.c @@ -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);