summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_you.cc
diff options
context:
space:
mode:
authorpubby <pubby8@gmail.com>2013-11-10 16:54:11 +0000
committerChris Campbell <chriscampbell89@gmail.com>2013-11-10 16:54:23 +0000
commit82cd9f861486d27ebc2b1097e127c7a20221393e (patch)
treedae0080e1ff9d6142975e8c5e2d5c029226b42be /crawl-ref/source/l_you.cc
parent343fe796a6c99ae5962ea31b0c9afe6142ac922d (diff)
downloadcrawl-ref-82cd9f861486d27ebc2b1097e127c7a20221393e.tar.gz
crawl-ref-82cd9f861486d27ebc2b1097e127c7a20221393e.zip
Give Trog's Hand its own duration.
Trog's hand was using DUR_REGENERAITON, and setting ATTR_DIVINE_REGENERATION to true to specify it was the god ability and not the spell. This was silly, so this commit gives trog's hand its own duration: DUR_TROGS_HAND. This also fixes a very minor bug: previously if you had trog's hand active and you tried to cast regen, you got penance but the spell was immediately canceled. Other duration spells were not canceled.
Diffstat (limited to 'crawl-ref/source/l_you.cc')
-rw-r--r--crawl-ref/source/l_you.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/l_you.cc b/crawl-ref/source/l_you.cc
index eafcd22c5e..71cc0b72dc 100644
--- a/crawl-ref/source/l_you.cc
+++ b/crawl-ref/source/l_you.cc
@@ -142,7 +142,8 @@ LUARET1(you_mesmerised, boolean, you.duration[DUR_MESMERISED])
LUARET1(you_on_fire, boolean, you.duration[DUR_LIQUID_FLAMES])
LUARET1(you_petrifying, boolean, you.duration[DUR_PETRIFYING])
LUARET1(you_silencing, boolean, you.duration[DUR_SILENCE])
-LUARET1(you_regenerating, boolean, you.duration[DUR_REGENERATION])
+LUARET1(you_regenerating, boolean, you.duration[DUR_REGENERATION]
+ || you.duration[DUR_TROGS_HAND])
LUARET1(you_breath_timeout, boolean, you.duration[DUR_BREATH_WEAPON])
LUARET1(you_extra_resistant, boolean, you.duration[DUR_RESISTANCE])
LUARET1(you_mighty, boolean, you.duration[DUR_MIGHT])