diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-11 12:31:08 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-11 12:31:08 +0000 |
commit | 5da77fd18ee63339cbb9fba9b23a04188b08c6e5 (patch) | |
tree | 44d5b4b73956cc1344a75e54ce83248635330d5b /crawl-ref/source/spl-cast.cc | |
parent | f16aa92587a0f06bce2bcd70e0b364e0947cb8ca (diff) | |
download | crawl-ref-5da77fd18ee63339cbb9fba9b23a04188b08c6e5.tar.gz crawl-ref-5da77fd18ee63339cbb9fba9b23a04188b08c6e5.zip |
Fix 2015315 by not even bothering to prompt for spells with the
SPFLAG_NOT_SELF flag.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6492 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r-- | crawl-ref/source/spl-cast.cc | 5 |
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) { |