]> granicus.if.org Git - nethack/commit
fix #332 - strangulation affects headless monsters (trunk only)
authornethack.rankin <nethack.rankin>
Fri, 18 May 2007 02:10:39 +0000 (02:10 +0000)
committernethack.rankin <nethack.rankin>
Fri, 18 May 2007 02:10:39 +0000 (02:10 +0000)
commit4be43239a846926ea6b71961508d56ac83e8ded9
treefce93db5ebaddbb08860917a9c976d2634de8f68
parent78d9a4186a07d96161252dc72642169350c04515
fix #332 - strangulation affects headless monsters (trunk only)

     From a bug report:  amulet of strangulation
continues to kill hero if he polymorphs into a creature which doesn't
need to breathe or doesn't have a head or even a circulatory system.
Currently, the messages are different when the hero doesn't need to
breathe, but that doesn't seem good enough.  This makes strangulation
stop when you polymorph into something which shouldn't be vulnerable and
restart if you poly into something vulnerable while still wearing the
bad amulet.

     can_be_strangled() is doing more checks that necessary, in case the
strangulation property ever gets conferred by something other than an
amulet.  Its criteria for protection from strangling might need tweaking.
doc/fixes35.0
include/extern.h
src/do_wear.c
src/mondata.c
src/polyself.c
src/timeout.c