]> granicus.if.org Git - nethack/commit
fix #H7749 - "you detect it"
authorPatR <rankin@nethack.org>
Sun, 23 Dec 2018 00:35:15 +0000 (16:35 -0800)
committerPatR <rankin@nethack.org>
Sun, 23 Dec 2018 00:35:15 +0000 (16:35 -0800)
commitd6ed41339edb7e7d875e1fc6ff343989f43fa7f7
tree5be5887381200db533f0ea8654c0d138c1154c10
parent8dfc10d8c62e94c42f0f35a9e43d4f20464579af
fix #H7749 - "you detect it"

'Detect' is used for observing a vampire shape change without being
able to see the vampire.  The problem here is that it changed from
bat form to fog cloud form in order to pass under a closed door,
and the message was being delivered when it was already at the door
location instead of before the move from a visible spot to that door.

I'm not happy with this fix, but any other alternative I considered
seemed to be worse.  Having the shape change use up the monster's
move is probably a better way to go.  Then on its next move it will
be in the right form to make a normal flow-under-door move.
doc/fixes36.2
src/monmove.c