summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index f45762c9b9..b3dfc3fbeb 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -2018,6 +2018,16 @@ void yell(bool force)
return;
}
+ if (env.sanctuary_time > 0)
+ {
+ if (!yesno("An ally attacking under your orders might violate "
+ "sanctuary; order anyways?", false, 'n'))
+ {
+ canned_msg(MSG_OK);
+ return;
+ }
+ }
+
mpr("Gang up on whom?", MSGCH_PROMPT);
direction( targ, DIR_TARGET, TARG_ENEMY, -1, false, false );