]> granicus.if.org Git - nethack/commit
finding hidden monsters
authorPatR <rankin@nethack.org>
Mon, 8 Jul 2019 23:57:52 +0000 (16:57 -0700)
committerPatR <rankin@nethack.org>
Mon, 8 Jul 2019 23:57:52 +0000 (16:57 -0700)
commitcfca15d02c778540e06f0f51aff0b358d6c55786
tree3ab62fc70dafd261a41eb1352936430b5f375dcd
parentceb2d51426ae9a23b5a6282788062b02df7879a7
finding hidden monsters

Wizard mode ^E and any mode spell of detect unseen or wand of secret
door detection failed to find mon->mundetected monsters if they were
hiding under objects, and failed to find those or other hiders or
mimics when the hidden monster was at a trap location.  The fix for
the latter initially only worked if the trap was known, so took two
tries when a monster hid at the location of an unseen trap.  So this
makes the additional change to find both things at the same time; it
isn't manual searching that stops as soon as something is found.
doc/fixes36.3
src/detect.c