Demons cannot be frightened by showing them their reflection

From xnethack by copperwater <aosdict@gmail.com>.
This commit is contained in:
Pasi Kallinen
2023-12-10 20:10:22 +02:00
parent e0f591bc49
commit c2802dba2d
2 changed files with 2 additions and 0 deletions

View File

@@ -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, 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 non-flyer monster survived that it got marked as trapped even though
flooding deleted the trap 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 Fixes to 3.7.0-x General Problems Exposed Via git Repository

View File

@@ -1144,6 +1144,7 @@ use_mirror(struct obj *obj)
if (!tele_restrict(mtmp)) if (!tele_restrict(mtmp))
(void) rloc(mtmp, RLOC_MSG); (void) rloc(mtmp, RLOC_MSG);
} else if (!is_unicorn(mtmp->data) && !humanoid(mtmp->data) } else if (!is_unicorn(mtmp->data) && !humanoid(mtmp->data)
&& !is_demon(mtmp->data)
&& (!mtmp->minvis || perceives(mtmp->data)) && rn2(5)) { && (!mtmp->minvis || perceives(mtmp->data)) && rn2(5)) {
boolean do_react = TRUE; boolean do_react = TRUE;