summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-24 19:31:12 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-24 19:31:12 +0000
commita24f6ba591408bf6d6c24c398a7778718faee78a (patch)
tree5ef804cfc132d2b5d2ded86469bba66c418a1cf1 /crawl-ref/source/beam.cc
parent918389a0cf54b7b6adf6505a1321f8b414d0effe (diff)
downloadcrawl-ref-a24f6ba591408bf6d6c24c398a7778718faee78a.tar.gz
crawl-ref-a24f6ba591408bf6d6c24c398a7778718faee78a.zip
Account for sanctuaries in the "Really fire through..." prompt.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5217 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index d851158db9..28796c4792 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -4197,7 +4197,7 @@ static bool _stop_unchivalric_attack(monsters *mon, bool target)
{
// "Really fire through the helpless neutral holy Daeva?"
// was: "Really fire through this helpless neutral holy creature?"
- snprintf(info, INFO_SIZE, "Really fire %s the %s%s%s%s?",
+ snprintf(info, INFO_SIZE, "Really fire %s the %s%s%s%s%s?",
(target ? "at" : "through"),
(isUnchivalric) ? "helpless "
: "",
@@ -4207,7 +4207,10 @@ static bool _stop_unchivalric_attack(monsters *mon, bool target)
: "",
(isHoly) ? "holy "
: "",
- mon->name(DESC_PLAIN).c_str());
+ mon->name(DESC_PLAIN).c_str(),
+ (is_sanctuary(you.x_pos, you.y_pos)
+ || is_sanctuary(mon->x, mon->y)) ?
+ ", despite your sanctuary" : "");
if (!yesno(info, true, 'n'))
return (true);