fix github issue #1253 - shape change vs Elbereth

Issue reported by chadministratorwastaken:  were-creature that was
ignoring Elbereth while in human form would make one more attack
after changing into creature form.

Have new_were() make an onscary() check when changing to beast form
while next to the hero.  Do likewise for polymorphing creature.

Fixes #1253
This commit is contained in:
PatR
2024-06-04 23:59:39 -07:00
parent 8652262105
commit cfb053157a
3 changed files with 27 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.1435 $ $NHDT-Date: 1715984437 2024/05/17 22:20:37 $
NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.1442 $ $NHDT-Date: 1717570484 2024/06/05 06:54:44 $
General Fixes and Modified Features
-----------------------------------
@@ -1415,6 +1415,9 @@ the tile for Ixoth (knight's quest nemesis) depicted a demon rather than a
dragon; change it to be a red dragon
untrapping containers or doors gives some experience
only honor DEBUGFILES (for activating debugpline() calls) when in wizard mode
if hero is on scroll of scare monster or Elbereth, werecreature switching from
human to beast form or general monster polymorphing into a susceptible
form will become scared right away instead on its next move
Fixes to 3.7.0-x General Problems Exposed Via git Repository