From: nethack.allison Date: Sun, 16 Nov 2003 03:00:21 +0000 (+0000) Subject: newsgroup bit X-Git-Tag: MOVE2GIT~1586 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f4237c46c53c87059e1aaec2739c5429c5b912e;p=nethack newsgroup bit --- diff --git a/doc/fixes34.3 b/doc/fixes34.3 index a67fbc691..d512ca23c 100644 --- a/doc/fixes34.3 +++ b/doc/fixes34.3 @@ -91,6 +91,7 @@ trapped monster repeatedly switched between ranged and hand-to-hand weapon silver items such as wands avoided all the silver checks in hmon_hitmon() resuming an interrupted 'A' command could cause crash if pending worn item(s) were stolen or destroyed +when you're asleep you shouldn't "notice" monsters that have become undetected Platform- and/or Interface-Specific Fixes diff --git a/src/mhitm.c b/src/mhitm.c index 3562365eb..36b5a12a0 100644 --- a/src/mhitm.c +++ b/src/mhitm.c @@ -222,8 +222,12 @@ mattackm(magr, mdef) if (mdef->mundetected) { mdef->mundetected = 0; newsym(mdef->mx, mdef->my); - if(canseemon(mdef) && !sensemon(mdef)) - pline("Suddenly, you notice %s.", a_monnam(mdef)); + if(canseemon(mdef) && !sensemon(mdef)) { + if (u.usleep) You("dream of %s.", + (mdef->data->geno & G_UNIQ) ? + mon_nam(mdef) : makeplural(mon_nam(mdef))); + else pline("Suddenly, you notice %s.", a_monnam(mdef)); + } } /* Elves hate orcs. */