summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2010-01-04 20:36:29 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2010-01-04 20:42:01 +1000
commit37ca61fa33fb9dc6dea480044d91bbfcf45d3932 (patch)
tree53d4a42b0b50f484ec5c8abbf4a79232171a1969 /crawl-ref/source/beam.cc
parent337f1de1f6a09d7b72a74a9fb6d8365ba9566d4e (diff)
downloadcrawl-ref-37ca61fa33fb9dc6dea480044d91bbfcf45d3932.tar.gz
crawl-ref-37ca61fa33fb9dc6dea480044d91bbfcf45d3932.zip
Fix chaos beams causing "software bugs nibble at your feet" (Darshan)
This was caused by a switch statement not handling BEAM_BERSERK and BEAM_MIGHT.
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index 2ac31458bf..5b2467bda6 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -4157,6 +4157,16 @@ void bolt::affect_player_enchantment()
obvious_effect = true;
break;
+ case BEAM_BERSERK:
+ potion_effect( POT_BERSERK_RAGE, ench_power );
+ obvious_effect = true;
+ break;
+
+ case BEAM_MIGHT:
+ potion_effect( POT_MIGHT, ench_power );
+ obvious_effect = true;
+ break;
+
default:
// _All_ enchantments should be enumerated here!
mpr("Software bugs nibble your toes!");