]> granicus.if.org Git - nethack/commit
fix github issue 221 - unfixable troubles
authorPatR <rankin@nethack.org>
Wed, 18 Sep 2019 18:37:11 +0000 (11:37 -0700)
committerPatR <rankin@nethack.org>
Wed, 18 Sep 2019 18:37:11 +0000 (11:37 -0700)
commit656963118035fe4996f7b9f59aa5b21aaf234938
tree65d0fcd0b92546bae55d3b6e8cfc78d12d418d7e
parentfd03a1b31048f94834f4ee1f80a3878bd34cff55
fix github issue 221 - unfixable troubles

Fixes #221

Routine unfixeable_trouble_count() is used for both applying a unicorn
horn (possibly internally via #monster if poly'd into a unicorn) and
drinking a blessed potion of restore ability.  For the latter case, it
always gave the wrong answer (unless the hero happened to be all of
Sick and Stunned and Confused and Hallucinating and Vomiting and Deaf).
Since the actual count wasn't used to decide whether hero felt "great"
or just "good", having any of those conditions would hide the problem.
doc/fixes36.3
include/youprop.h
src/apply.c