diff options
Diffstat (limited to 'crawl-ref/source/spells4.cc')
-rw-r--r-- | crawl-ref/source/spells4.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc index 95404a97bf..3ffe619afe 100644 --- a/crawl-ref/source/spells4.cc +++ b/crawl-ref/source/spells4.cc @@ -1674,6 +1674,13 @@ bool cast_fragmentation(int pow, const dist& spd) bool hole = true; const char *what = NULL; + ray_def ray; + if ( !find_ray(you.pos(), spd.target, false, ray) ) + { + mpr("There's a wall in the way!"); + return false; + } + //FIXME: If (player typed '>' to attack floor) goto do_terrain; beam.beam_source = MHITYOU; beam.thrower = KILL_YOU; |