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.
This commit is contained in:
@@ -229,6 +229,7 @@ eliminate case-sensitivity when converting words from singular to plural and
|
||||
breath attack directed at self by poly'd hero always hits
|
||||
override non-silver vs shades for artifacts which deal extra damage to undead
|
||||
assorted mirror fixes--mainly visibility issues
|
||||
some monsters can't be strangled; self-polymorph can stop/restart strangulation
|
||||
|
||||
|
||||
Platform- and/or Interface-Specific Fixes
|
||||
|
||||
Reference in New Issue
Block a user