summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r--crawl-ref/source/misc.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index c2c19ddf8c..ae0c9b404e 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -1586,6 +1586,11 @@ bool i_feel_safe(bool announce, bool want_move)
return (false);
}
}
+
+ // no monster will attack you inside a sanctuary,
+ // so presence of monsters won't matter
+ if (is_sanctuary(you.x_pos, you.y_pos))
+ return (true);
std::vector<const monsters *> mons;
/* monster check */