summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index 67c985e225..96ee704198 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -2691,10 +2691,13 @@ static void _decrement_durations()
6, coinflip(),
"You start to feel a little uncertain.");
- _decrement_a_duration(DUR_DEATH_CHANNEL,
- "Your unholy channel expires.",
- 6, coinflip(),
- "Your unholy channel is weakening.");
+ if (_decrement_a_duration(DUR_DEATH_CHANNEL,
+ "Your unholy channel expires.",
+ 6, coinflip(),
+ "Your unholy channel is weakening."))
+ {
+ you.attribute[ATTR_DIVINE_DEATH_CHANNEL] = 0;
+ }
_decrement_a_duration(DUR_SAGE, "You feel less studious.");
_decrement_a_duration(DUR_STEALTH, "You feel less stealthy.");