From 8cffb32e8c61a88ce23b389c5d1e4255e21e59d9 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Sun, 29 Jun 2008 06:53:52 +0000 Subject: Only place a newly created monster (summons) on a sanctuary square if it is friendly. Only allow friendly and neutral-good monsters to blink or teleport onto a sanctuary square. Don't allow corpses on sanctuary squares to be rotted or animated. Restrict monster cantrip messages to self-buff types if the player is in sanctuary. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6211 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spells3.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crawl-ref/source/spells3.cc') 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. -- cgit v1.2.3-54-g00ecf