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>2008-07-11 13:21:31 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-11 13:21:31 +0000
commitc6faa051c8f0f48d5922f9134e611d9ee675162d (patch)
tree9cf7e520bcbac621f7143952450253f1fbeb4d39 /crawl-ref/source/spl-cast.cc
parent8af56c9f2d1a3e2ef9dbeae0b47263b47f00be42 (diff)
downloadcrawl-ref-c6faa051c8f0f48d5922f9134e611d9ee675162d.tar.gz
crawl-ref-c6faa051c8f0f48d5922f9134e611d9ee675162d.zip
Add lm_props.lua and appry recent commits.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6494 c06c8d41-db1a-0410-9941-cceddc491573
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)
{