From 9f1f5b5a19e1216e375d36f07e5ce962d140dc28 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Mon, 30 Jun 2008 03:54:16 +0000 Subject: 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 --- crawl-ref/source/mstuff2.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crawl-ref') 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", -- cgit v1.2.3-54-g00ecf