diff options
author | Charles Otto <ottochar@gmail.com> | 2009-11-08 15:43:17 -0500 |
---|---|---|
committer | Charles Otto <ottochar@gmail.com> | 2009-11-08 16:16:38 -0500 |
commit | 1444694325d900c87483e84ee5f2bfcac04bb3bf (patch) | |
tree | 5939f670f48f30299d68dab4eaf262eba95ede91 /crawl-ref/source/makefile | |
parent | c445956fabba97f647a0e659cab6a15ddc019260 (diff) | |
download | crawl-ref-1444694325d900c87483e84ee5f2bfcac04bb3bf.tar.gz crawl-ref-1444694325d900c87483e84ee5f2bfcac04bb3bf.zip |
Prevent chaos weapons from using SPWPN_CONFUSE on the player
SPWPN_CONFUSE is what confusing touch uses to inflict confusion. The
SPWPN_CONFUSE case in melee_attack::apply_damage_brand isn't set up to
work on the player, and when that case came up with the player
defending an assertion failure was triggered.
I made the case in apply_damage_brand do nothing if used on the player.
The case could be made more general, but it might make sense to
implement a confuse brand specifically for chaose weapons since the
HD check used for confusing touch isn't consistent with how the other
chaos-weapon-caused status effects work.
Diffstat (limited to 'crawl-ref/source/makefile')
0 files changed, 0 insertions, 0 deletions