Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
nethack.rankin
committed
May 18, 2007
1 parent
78d9a41
commit 4be4323
Showing
6 changed files
with
78 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters