]> granicus.if.org Git - nethack/commit
fix github issue #109 - healing spells
authorPatR <rankin@nethack.org>
Wed, 20 Jun 2018 21:53:20 +0000 (14:53 -0700)
committerPatR <rankin@nethack.org>
Wed, 20 Jun 2018 21:53:20 +0000 (14:53 -0700)
commit800a898b51ee5884d761247eddc199ee88037c04
tree3af5a5d4af536c3c9236203dd904b5fc91f16e7f
parent3c979cb0a5748538e02e63fe42eaa670b68e5195
fix github issue #109 - healing spells

Fixes #109

Spells of healing and extra healing cast at monsters were handling
monster blindness differently from other forms of healing.  (Potions
also work differently when drunk by monsters but I haven't changed
that since it seems to be intentional.)

Hero:
   potion of healing cures blindness if blessed; spell of healing
      cast at skilled or better now behaves likewise;
   potion of extra healing cures blindness if not cursed; spell of
      extra healing is inherently not cursed and already behaved
      likewise;
   potion of full healing always cures blindness even if cursed.

Monsters quaffing potions:
   plain healing cures blindness if not cursed;
   extra healing and full healing always cure blindess.

Hero casting healing spell at monster:
   plain healing behaves like the hero plain healing case:  cures
      blindness as if blessed when cast at skilled or expert level;
      this is a change in hehavior--it used to cure timed blindness
      even if unskilled and not cure 'permanent' blindness at all;
   extra healing cast by hero is inherently not cursed so always
      cures blindness.
doc/fixes36.2
src/spell.c
src/zap.c