summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/spl-cast.cc10
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)