diff options
author | pubby <pubby8@gmail.com> | 2013-08-31 00:34:46 -0500 |
---|---|---|
committer | pubby <pubby8@gmail.com> | 2013-08-31 00:34:46 -0500 |
commit | c1a2e1451a6ea5a45cc18280012de944af2e1284 (patch) | |
tree | 04096dbc7097e330c94ddc7749e61253ef865852 /crawl-ref/source/spl-selfench.cc | |
parent | 0a02c0268f0aba128610bf4cb2d9e1668b30449d (diff) | |
download | crawl-ref-c1a2e1451a6ea5a45cc18280012de944af2e1284.tar.gz crawl-ref-c1a2e1451a6ea5a45cc18280012de944af2e1284.zip |
Negate swiftness with stasis.
Negating swiftness is an important design choice of Formicids.
Unfortunately, the stasis amulet will suffer slightly, although it is a
very uncommon effect.
Diffstat (limited to 'crawl-ref/source/spl-selfench.cc')
-rw-r--r-- | crawl-ref/source/spl-selfench.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/spl-selfench.cc b/crawl-ref/source/spl-selfench.cc index bba70e1698..b1b9f0dc62 100644 --- a/crawl-ref/source/spl-selfench.cc +++ b/crawl-ref/source/spl-selfench.cc @@ -13,6 +13,7 @@ #include "env.h" #include "godconduct.h" #include "hints.h" +#include "item_use.h" #include "libutil.h" #include "message.h" #include "misc.h" @@ -187,6 +188,12 @@ spret_type cast_swiftness(int power, bool fail) return SPRET_ABORT; } + if (stasis_blocks_effect(true, true, "%s emits a piercing whistle.", 20, + "%s makes your neck tingle.")) + { + return SPRET_ABORT; + } + if (you.in_water() || you.liquefied_ground()) { mprf("The %s foams!", you.in_water() ? "water" |