diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-23 12:19:45 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-23 12:19:45 +0000 |
commit | 18741e50d68bd9300957899729929ff9ff409448 (patch) | |
tree | d61cea34acead440ec69fb50d5a8df4ea5419b3d /crawl-ref | |
parent | d3e93c074746027e209a67a247c7a0be78c5f40e (diff) | |
download | crawl-ref-18741e50d68bd9300957899729929ff9ff409448.tar.gz crawl-ref-18741e50d68bd9300957899729929ff9ff409448.zip |
Backport prompt for Mephitic Cloud when targeting self to 0.5.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10383 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/spl-cast.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc index 735c1d58fc..a7cff3e036 100644 --- a/crawl-ref/source/spl-cast.cc +++ b/crawl-ref/source/spl-cast.cc @@ -30,6 +30,7 @@ REVISION("$Rev$"); #include "itemprop.h" #include "macro.h" #include "menu.h" +#include "misc.h" #include "message.h" #include "monstuff.h" #include "mstuff2.h" @@ -1183,6 +1184,15 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail) return (SPRET_ABORT); } + if (spd.isMe && spell == SPELL_MEPHITIC_CLOUD) + { + if (i_feel_safe(false, false, true, 1) + && !yesno("Really target yourself?", false, 'n')) + { + return (SPRET_ABORT); + } + } + beam.range = _calc_spell_range(spell, powc, true); if (testbits(flags, SPFLAG_NOT_SELF) && spd.isMe) |