diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-29 06:53:52 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-29 06:53:52 +0000 |
commit | 8cffb32e8c61a88ce23b389c5d1e4255e21e59d9 (patch) | |
tree | fee921f947ec465a58a91b65fa53dc21ad8fbecd /crawl-ref/source/spells3.cc | |
parent | dcf9fc82a633b9541eae069e209088bcaa557cc8 (diff) | |
download | crawl-ref-8cffb32e8c61a88ce23b389c5d1e4255e21e59d9.tar.gz crawl-ref-8cffb32e8c61a88ce23b389c5d1e4255e21e59d9.zip |
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
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r-- | crawl-ref/source/spells3.cc | 3 |
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. |