]> granicus.if.org Git - nethack/commit
spellcasting bug fix: confusion duration
authorPatR <rankin@nethack.org>
Wed, 4 Nov 2015 10:27:59 +0000 (02:27 -0800)
committerPatR <rankin@nethack.org>
Wed, 4 Nov 2015 10:27:59 +0000 (02:27 -0800)
commitc48e1732d89e5a22b9ede83247a7898271f54359
tree4f0291d6141847e565798338500d9f8898f82b71
parent2ddc361adf2ae52e61f45f74c42c731b3c46c700
spellcasting bug fix: confusion duration

Fix the reported bug that attempting to cast an expired spell, which
causes confusion and/or stun, was replacing the duration of any existing
confusion or stun with the new amount rather than increasing it by that
amount.

Attempting to cast any spell while stunned will now fail immediately,
and casting an expired spell while confused will increase confusion
duration (and/or set stun duration) rather than override it.
doc/fixes36.0
src/spell.c