heard incantation: don't trump telepathy with 'I'

GitHub 1343 report by @ars3niy:
"When you are blind and see with telepathy a monster whom you then hear read
a scroll, said monster turns into an "I". While it reveals which one exactly
read the scroll, it is strange that you can no longer see it with telepathy
until it moves to another square."

Fixes #1343
This commit is contained in:
nhmall
2024-12-20 13:04:08 -05:00
parent cc31017265
commit a35e5779f6
2 changed files with 4 additions and 1 deletions

View File

@@ -265,7 +265,8 @@ mreadmsg(struct monst *mtmp, struct obj *otmp)
/* monster can't be seen; hero might be blind or monster might
be at a spot that isn't in view or might be invisible; remember
it if the spot is within line of sight and relatively close */
if (couldsee(mtmp->mx, mtmp->my) && mdistu(mtmp) <= 10 * 10)
if (!sensemon(mtmp)
&& couldsee(mtmp->mx, mtmp->my) && mdistu(mtmp) <= 10 * 10)
map_invisible(mtmp->mx, mtmp->my);
Snprintf(blindbuf, sizeof blindbuf, "reading %s", onambuf);