Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix github issue #148 - life-save while swallowed
Life-saving was setting u.uswldtim to 0, presumably intending that to stop the hero from being digested, but it actually resulted in being totally digested on the swallower's next turn if the death being short-circuited wasn't digestion. Change life-saving to make swallower or grabber release the hero instead of tinkering with u.uswldtim. In addition to rescuing the hero from digestion, it prevents an eel which has just drowned the hero (who has survived drowning via life-saving) from pulling him/her back into the water on its next turn. It will need to make another successful grab to do that now. While testing, I noticed that if I was polymorphed and wearing an amulet of unchanging, life-saving didn't restore my HP-as-a-monster and due to the recent change to force that to 0 when the hero dies, I died again immediately after my life was saved. So this bug was latent in the past and became noticeable in the last couple of days.
- Loading branch information
PatR
committed
Oct 28, 2018
1 parent
747ebf0
commit 858e9ce
Showing
3 changed files
with
37 additions
and
11 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