summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/player.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 19e0869812..57f011c52e 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -7000,13 +7000,14 @@ void player::rot(actor *who, int amount, int immediate)
if (res_rotting() > 0 || amount <= 0)
return;
- rot_player(amount);
-
if (immediate > 0)
rot_hp(immediate);
- if (one_chance_in(4))
- disease_player(50 + random2(100));
+ if (rot_player(amount))
+ {
+ if (one_chance_in(4))
+ disease_player(50 + random2(100));
+ }
}
bool player::drain_exp(actor *who, bool quiet)