summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mstuff2.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-30 03:54:16 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-30 03:54:16 +0000
commit9f1f5b5a19e1216e375d36f07e5ce962d140dc28 (patch)
treeed85543be2e43c1c6e259cf681ebbf9084a181b2 /crawl-ref/source/mstuff2.cc
parent661cf5f11b9c9d624a0ad89d8506516ff1969dca (diff)
downloadcrawl-ref-9f1f5b5a19e1216e375d36f07e5ce962d140dc28.tar.gz
crawl-ref-9f1f5b5a19e1216e375d36f07e5ce962d140dc28.zip
Sanctuary now protects friendly and neutral-good monsters from Abjure.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6234 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mstuff2.cc')
-rw-r--r--crawl-ref/source/mstuff2.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/mstuff2.cc b/crawl-ref/source/mstuff2.cc
index 7e57b643e3..e7bb469645 100644
--- a/crawl-ref/source/mstuff2.cc
+++ b/crawl-ref/source/mstuff2.cc
@@ -2272,6 +2272,11 @@ static int _monster_abjure_square(const coord_def &pos,
if (pow < abj.duration)
simple_god_message(" shields your ally from puny magic!");
}
+ else if (is_sanctuary(target->x, target->y))
+ {
+ simple_god_message(" protects your fellow warrior from evil magic!");
+ return (0);
+ }
#ifdef DEBUG_DIAGNOSTICS
mprf(MSGCH_DIAGNOSTICS, "Abj: dur: %d, pow: %d, ndur: %d",