summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/art-func.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-11-01 12:45:10 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-11-01 12:45:10 +0100
commit109c0d635f0c9440b6789c9251a38783e7d5e9a0 (patch)
treef01c08cbf39419812d01a6166e13996bb914ca55 /crawl-ref/source/art-func.h
parentd83426aef5ea6aca778fe86efe7ae2f9ceba612e (diff)
downloadcrawl-ref-109c0d635f0c9440b6789c9251a38783e7d5e9a0.tar.gz
crawl-ref-109c0d635f0c9440b6789c9251a38783e7d5e9a0.zip
Disallow using abilities with a hp cost while under DDoor.
Diffstat (limited to 'crawl-ref/source/art-func.h')
-rw-r--r--crawl-ref/source/art-func.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/art-func.h b/crawl-ref/source/art-func.h
index 93d153c3c8..4c36e204c4 100644
--- a/crawl-ref/source/art-func.h
+++ b/crawl-ref/source/art-func.h
@@ -188,7 +188,7 @@ static void _DISPATER_melee_effects(item_def* weapon, actor* attacker,
static bool _DISPATER_evoke(item_def *item, int* pract, bool* did_work,
bool* unevokable)
{
- if (you.duration[DUR_DEATHS_DOOR] || !enough_hp(11, true))
+ if (!enough_hp(11, true))
{
mpr("You're too close to death to use this item.");
*unevokable = true;