summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-util.cc
diff options
context:
space:
mode:
authorShmuale Mark <shm.mark@gmail.com>2014-02-25 20:51:47 -0500
committerShmuale Mark <shm.mark@gmail.com>2014-02-25 20:53:03 -0500
commita46dc13d87b046c20fa7607551b80095b85e7cc6 (patch)
treeefb3bd2308e73f8f7737246b9da3c6cf77501da1 /crawl-ref/source/spl-util.cc
parentf861ac59fee8bce4aed35b380a82c14873210190 (diff)
downloadcrawl-ref-a46dc13d87b046c20fa7607551b80095b85e7cc6.tar.gz
crawl-ref-a46dc13d87b046c20fa7607551b80095b85e7cc6.zip
Fix false claim by Random Bolt that no susceptible monsters were in range.
Diffstat (limited to 'crawl-ref/source/spl-util.cc')
-rw-r--r--crawl-ref/source/spl-util.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/spl-util.cc b/crawl-ref/source/spl-util.cc
index c004fa3bac..b59fc1f4d3 100644
--- a/crawl-ref/source/spl-util.cc
+++ b/crawl-ref/source/spl-util.cc
@@ -1279,6 +1279,8 @@ bool spell_no_hostile_in_range(spell_type spell)
zap_type zap = spell_to_zap(spell);
if (spell == SPELL_FIREBALL)
zap = ZAP_FIREBALL;
+ else if (spell == SPELL_RANDOM_BOLT) // don't let it think that there are no susceptible monsters in range
+ zap = ZAP_DEBUGGING_RAY;
if (zap != NUM_ZAPS)
{