summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r--crawl-ref/source/spl-cast.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index 51a3c0ff70..13d9922563 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -1034,8 +1034,11 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail)
const bool needs_path = (!testbits(flags, SPFLAG_GRID)
&& !testbits(flags, SPFLAG_TARGET));
- if (!spell_direction(spd, beam, dir, targ, needs_path, true, prompt))
+ if (!spell_direction(spd, beam, dir, targ, needs_path, true, prompt,
+ testbits(flags, SPFLAG_NOT_SELF)))
+ {
return (SPRET_ABORT);
+ }
if (testbits(flags, SPFLAG_NOT_SELF) && spd.isMe)
{