From c3745836326a1867537786733584de262378d1de Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Thu, 22 Jun 2006 05:03:48 +0000 Subject: [PATCH] detected hidden monsters From a bug report, attempting to attack a hidden monster who is revealed by ongoing monster detection (blessed potion or skilled spell) gave "wait! there's a hiding there" response and prevented the attack. Make it behave the same as when the hidden monster is revealed by telepathy; the monster comes out of hiding and the hero's attack proceeds. --- doc/fixes34.4 | 2 ++ src/uhitm.c | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/fixes34.4 b/doc/fixes34.4 index 290c22c73..00f581816 100644 --- a/doc/fixes34.4 +++ b/doc/fixes34.4 @@ -235,6 +235,8 @@ display the invisible monster glyph ('I') whenever an unseen monster forces poly'd hero out of hiding escape the deleted trap after performing the invocation while trapped use alternate phrasing when life drain attack affects non-living creature +bypass "wait! there's a creature hidden there" when attacking a hidden monster + sensed by ongoing monster detection Platform- and/or Interface-Specific Fixes diff --git a/src/uhitm.c b/src/uhitm.c index 6c5245acc..9ac52aa2a 100644 --- a/src/uhitm.c +++ b/src/uhitm.c @@ -1,4 +1,4 @@ -/* SCCS Id: @(#)uhitm.c 3.5 2006/03/29 */ +/* SCCS Id: @(#)uhitm.c 3.5 2006/06/21 */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ @@ -172,7 +172,8 @@ struct obj *wep; /* uwep for attack(), null for kick_monster() */ seemimic(mtmp); return(FALSE); } - if (!(Blind ? Blind_telepat : Unblind_telepat)) { + if (!((Blind ? Blind_telepat : Unblind_telepat) || + Detect_monsters)) { struct obj *obj; if (Blind || (is_pool(mtmp->mx,mtmp->my) && !Underwater)) -- 2.40.0