From e3a2dd7f40cc21bd8ea91555e7d0466fa810b0d9 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sun, 12 Sep 2021 19:44:35 +0300 Subject: [PATCH] Reveal the monster your strike moved When you hit a small hidden monster (by eg. force-fighting) that got moved by the strike, the monster stayed hidden, possibly causing a sanity checking error. Reveal the monster before hurtling it. --- src/dothrow.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/dothrow.c b/src/dothrow.c index e91fa8582..b170e2969 100644 --- a/src/dothrow.c +++ b/src/dothrow.c @@ -982,6 +982,14 @@ mhurtle(struct monst *mon, int dx, int dy, int range) if (dx && dy && NODIAG(monsndx(mon->data))) return; + /* undetected monster can be moved by your strike */ + if (mon->mundetected) { + mon->mundetected = 0; + newsym(mon->mx, mon->my); + } + if (M_AP_TYPE(mon)) + seemimic(mon); + /* Send the monster along the path */ mc.x = mon->mx; mc.y = mon->my;