summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-selfench.h
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2011-07-13 23:28:28 +0100
committerChris Campbell <chriscampbell89@gmail.com>2011-07-13 23:28:28 +0100
commitdf7ea41f5e99f64a97782ef7f9ed4c4a6887d7aa (patch)
tree5ba4d3d581b69d8bbe73f0cab31dc245230fe8f5 /crawl-ref/source/spl-selfench.h
parentc938bf108a8f592684a5c4f65a16989e7d9e88ca (diff)
downloadcrawl-ref-df7ea41f5e99f64a97782ef7f9ed4c4a6887d7aa.tar.gz
crawl-ref-df7ea41f5e99f64a97782ef7f9ed4c4a6887d7aa.zip
Abort some self-enchantments without wasting a turn in situations where they cannot be cast
Also remove some unnecessary checks: Stoneskin being uncastable by the undead is already handled elsewhere, and Ozo's armour doesn't need to check for whether it's being extended (by the removed Extension spell).
Diffstat (limited to 'crawl-ref/source/spl-selfench.h')
-rw-r--r--crawl-ref/source/spl-selfench.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spl-selfench.h b/crawl-ref/source/spl-selfench.h
index 410f353247..02fb7b0b9a 100644
--- a/crawl-ref/source/spl-selfench.h
+++ b/crawl-ref/source/spl-selfench.h
@@ -4,14 +4,14 @@
int allowed_deaths_door_hp(void);
bool cast_deaths_door(int pow);
void remove_ice_armour();
-void ice_armour(int pow, bool extending);
+bool ice_armour(int pow);
void missile_prot(int pow);
void deflection(int pow);
void remove_regen(bool divine_ability = false);
void cast_regen(int pow, bool divine_ability = false);
-void cast_swiftness(int power);
+bool cast_swiftness(int power);
void cast_fly(int power);
void cast_insulation(int power);