summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r--crawl-ref/source/spells3.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index 524cf1f790..bc1a5c8a5f 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -871,6 +871,9 @@ bool animate_a_corpse(const coord_def &a, corpse_type class_allowed,
god_type god, bool actual,
bool quiet)
{
+ if (is_sanctuary(a.x, a.y))
+ return (false);
+
bool success = false;
// Search all the items on the ground for a corpse.