summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-01 11:00:06 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-01 11:00:06 +0000
commit1531585b32d3e58d21307860624881d3d998e38d (patch)
tree5bbdb8bd2572d98c8698ba64c02d0655ace60002 /crawl-ref/source/effects.cc
parentf74a7316f97532e8a819a40335e9b868fe42277b (diff)
downloadcrawl-ref-1531585b32d3e58d21307860624881d3d998e38d.tar.gz
crawl-ref-1531585b32d3e58d21307860624881d3d998e38d.zip
Sanctuary prevents magic contamination (glow) bad effects from happening.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6286 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index 92729148ef..577b5e21da 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -2510,7 +2510,14 @@ void handle_time(long time_delta)
// the original roll of 150 for 4.1.2, but I think players are
// sufficiently used to beta 26's unkindness that we can use a lower
// roll.)
- if (you.magic_contamination >= 5
+ if (is_sanctuary(you.x_pos, you.y_pos)
+ && you.magic_contamination >= 5
+ && random2(25) <= you.magic_contamination)
+ {
+ mpr("Your body momentarily shudders from a surge of wild "
+ "energies until Zin's power calms it.", MSGCH_GOD);
+ }
+ else if (you.magic_contamination >= 5
&& random2(25) <= you.magic_contamination)
{
mpr("Your body shudders with the violent release "