From c2802dba2de05b478c95656b22abb9912e9704f0 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sun, 10 Dec 2023 20:10:22 +0200 Subject: [PATCH] Demons cannot be frightened by showing them their reflection From xnethack by copperwater . --- doc/fixes3-7-0.txt | 1 + src/apply.c | 1 + 2 files changed, 2 insertions(+) diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 379d06d21..0aca9b3fa 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -1328,6 +1328,7 @@ avoid impossible "trapped without a trap (fmon)" from 'sanity_check' when a caused adjacent pool/moat/lava to flood that spot; if a non-floater, non-flyer monster survived that it got marked as trapped even though flooding deleted the trap +demons cannot be frightened by showing them their reflection Fixes to 3.7.0-x General Problems Exposed Via git Repository diff --git a/src/apply.c b/src/apply.c index a7875da6d..017082e07 100644 --- a/src/apply.c +++ b/src/apply.c @@ -1144,6 +1144,7 @@ use_mirror(struct obj *obj) if (!tele_restrict(mtmp)) (void) rloc(mtmp, RLOC_MSG); } else if (!is_unicorn(mtmp->data) && !humanoid(mtmp->data) + && !is_demon(mtmp->data) && (!mtmp->minvis || perceives(mtmp->data)) && rn2(5)) { boolean do_react = TRUE;