From: cohrs Date: Sun, 2 Mar 2003 05:33:45 +0000 (+0000) Subject: C341-1 - don't make monsters angry if they enter non-hero regions X-Git-Tag: MOVE2GIT~2126 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e3d283508219feb7d5376c1df6afd3c7de29bf9;p=nethack C341-1 - don't make monsters angry if they enter non-hero regions this currently affects only regions created created by deads heros found in bones files --- diff --git a/doc/fixes35.0 b/doc/fixes35.0 index 1b5318965..78d3375f5 100644 --- a/doc/fixes35.0 +++ b/doc/fixes35.0 @@ -2,6 +2,7 @@ $RCSfile$ $Revision$ $Date$ General Fixes and Modified Features ----------------------------------- +setmangry should not be called when a monster enters a bones region Platform- and/or Interface-Specific Fixes diff --git a/src/region.c b/src/region.c index e4d12aff8..d3b5a6b0d 100644 --- a/src/region.c +++ b/src/region.c @@ -925,7 +925,7 @@ genericptr_t p2; if (!nonliving(mtmp->data) && !breathless(mtmp->data)) { if (cansee(mtmp->mx, mtmp->my)) pline("%s coughs!", Monnam(mtmp)); - setmangry(mtmp); + if (heros_fault(reg)) setmangry(mtmp); if (haseyes(mtmp->data) && mtmp->mcansee) { mtmp->mblinded = 1; mtmp->mcansee = 0;