summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-20 07:00:21 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-20 07:00:21 +0000
commit160877d2419830c4989516e9a09fa6260a052d42 (patch)
tree619442ec7224ae7289221d0876ae9b1d6bf59c2b /crawl-ref/source/spl-cast.cc
parente1879031547aa6861a565563724d7308d02cc2f2 (diff)
downloadcrawl-ref-160877d2419830c4989516e9a09fa6260a052d42.tar.gz
crawl-ref-160877d2419830c4989516e9a09fa6260a052d42.zip
* Add Shock/Lightning Bolt to list of spells that don't abort for 'z' if
there are no monsters within range. * Give a message if extending a transformation doesn't make it last long enough for the "about to time out" message. * Extension has no effect on Bat Form. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9794 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r--crawl-ref/source/spl-cast.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index 11c46506cd..fcc9e812aa 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -201,10 +201,14 @@ static bool _spell_no_hostile_in_range(spell_type spell, int minRange)
bool bonus = 0;
switch (spell)
{
+ // These don't target monsters.
case SPELL_APPORTATION:
case SPELL_PROJECTED_NOISE:
case SPELL_CONJURE_FLAME:
- // These don't target monsters.
+ // These bounce and may be aimed elsewhere to bounce at monsters
+ // outside range (I guess).
+ case SPELL_SHOCK:
+ case SPELL_LIGHTNING_BOLT:
return (false);
case SPELL_EVAPORATE:
case SPELL_MEPHITIC_CLOUD: