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.
This commit is contained in:
PatR
2015-11-04 02:27:59 -08:00
parent 2ddc361adf
commit c48e1732d8
2 changed files with 65 additions and 17 deletions
+3
View File
@@ -932,6 +932,9 @@ remaining monsters continued to move after hero conceptually left the level
#turn for non-priest/non-knight attempts to cast "turn undead" spell, but
was forcing the spell to target self rather than choose a direction
potions of gain energy are more useful for recovering hero's spell energy
spellcasting attempt of any spell while stunned now always fails
spellcasting attempt of expired spell while confused will increase confusion
duration rather than replace it
Platform- and/or Interface-Specific Fixes