From 1531585b32d3e58d21307860624881d3d998e38d Mon Sep 17 00:00:00 2001 From: zelgadis Date: Tue, 1 Jul 2008 11:00:06 +0000 Subject: 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 --- crawl-ref/source/effects.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/effects.cc') 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 " -- cgit v1.2.3-54-g00ecf