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.
This commit is contained in:
Pasi Kallinen
2021-09-12 19:44:35 +03:00
parent 583fb60835
commit e3a2dd7f40

View File

@@ -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;