Skip to content

Commit

Permalink
Only anger monsters inside stinking clouds if hero made it
Browse files Browse the repository at this point in the history
  • Loading branch information
FredrIQ committed Sep 11, 2017
1 parent 1a3ca1f commit bccd29c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libnethack/src/region.c
Original file line number Diff line number Diff line change
Expand Up @@ -739,8 +739,8 @@ inside_gas_cloud(void *p1, void *p2)
if (cansee(mtmp->mx, mtmp->my))
pline(mtmp->mtame ? msgc_petfatal : msgc_levelsound,
"%s coughs!", Monnam(mtmp));
/* TODO: conditionalise on heros_fault? */
setmangry(mtmp);
if (heros_fault(reg))
setmangry(mtmp);
if (haseyes(mtmp->data) && !blind(mtmp)) {
set_property(mtmp, BLINDED, 1, FALSE);
}
Expand Down

0 comments on commit bccd29c

Please sign in to comment.