From e965f6cf440e8249c51b4a37ae22c342f8904f69 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Wed, 23 Feb 2022 13:42:05 +0200 Subject: [PATCH] Give message trying to hurtle immovable monster If the monster is too big, stuck to hero, or trapped. --- src/dothrow.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);