summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-selfench.h
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/spl-selfench.h
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/spl-selfench.h')
-rw-r--r--crawl-ref/source/spl-selfench.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/spl-selfench.h b/crawl-ref/source/spl-selfench.h
index 1505bebd05..f208fdcaef 100644
--- a/crawl-ref/source/spl-selfench.h
+++ b/crawl-ref/source/spl-selfench.h
@@ -10,8 +10,7 @@ spret_type ice_armour(int pow, bool fail);
spret_type missile_prot(int pow, bool fail);
spret_type deflection(int pow, bool fail);
-void remove_regen(bool divine_ability = false);
-spret_type cast_regen(int pow, bool divine_ability = false, bool fail = false);
+spret_type cast_regen(int pow, bool fail = false);
spret_type cast_revivification(int pow, bool fail);
spret_type cast_swiftness(int power, bool fail = false);