From ec77cae6ceff3f075c694d7d5cbabaec6d1d64b5 Mon Sep 17 00:00:00 2001 From: dolorous Date: Tue, 17 Feb 2009 14:42:06 +0000 Subject: Fix [2581197]: Make glow status consistent with magical contamination by fixing off-by-one errors when checking the latter. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9113 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/effects.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/effects.cc') diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index f13b2d70d1..9161e0f80e 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -3177,13 +3177,13 @@ void handle_time(long time_delta) // sufficiently used to beta 26's unkindness that we can use a lower // roll.) if (is_sanctuary(you.pos()) - && you.magic_contamination >= 5 + && you.magic_contamination > 5 && x_chance_in_y(you.magic_contamination + 1, 25)) { 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 + else if (you.magic_contamination > 5 && x_chance_in_y(you.magic_contamination + 1, 25)) { mpr("Your body shudders with the violent release " @@ -3193,7 +3193,7 @@ void handle_time(long time_delta) // Undead enjoy extra contamination explosion damage because // the magical contamination has a harder time dissipating // through non-living flesh. :-) - if (you.magic_contamination >= 10 && coinflip()) + if (you.magic_contamination > 10 && coinflip()) { bolt beam; -- cgit v1.2.3-54-g00ecf