From ea9a385d6733538d72b0bdfc62638b20a90d0def Mon Sep 17 00:00:00 2001 From: nhmall Date: Sat, 8 Jun 2019 22:40:51 -0400 Subject: [PATCH] fixes entry and a display effect related to is_hider wishing --- doc/fixes36.3 | 1 + src/read.c | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/doc/fixes36.3 b/doc/fixes36.3 index 6c858a823..43b3b0863 100644 --- a/doc/fixes36.3 +++ b/doc/fixes36.3 @@ -66,6 +66,7 @@ thrown or kicked light source (lit lamp, candle, oil) should emit light as it unlike watching a monster trying to swap out a cursed weapon for some other weapon and failing, watching it wield a cursed weapon didn't report that weapon becoming welded to the monster's hand/claw/whatever +debug mode wishing for hidden monsters that pass is_hider test Fixes to Post-3.6.2 Problems that Were Exposed Via git Repository diff --git a/src/read.c b/src/read.c index dbf50db37..baf82d641 100644 --- a/src/read.c +++ b/src/read.c @@ -2579,7 +2579,20 @@ struct _create_particular_data *d; if (d->sleeping) mtmp->msleeping = 1; if (d->hidden && is_hider(mtmp->data)) { - mtmp->mundetected = 1; + if (wizard && cansee(mtmp->mx, mtmp->my)) { + int i, glyph[2]; + + glyph[0] = glyph_at(mtmp->mx, mtmp->my); + mtmp->mundetected = 1; + newsym(mtmp->mx, mtmp->my); + glyph[1] = glyph_at(mtmp->mx, mtmp->my); + if (!canseemon(mtmp) && !sensemon(mtmp)) + for (i = 0; i < 15; i++) { + show_glyph(mtmp->mx, mtmp->my, glyph[i % 2]); + flush_screen(1); + delay_output(); + } + } newsym(mtmp->mx, mtmp->my); } madeany = TRUE;