diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-06-24 10:59:41 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-06-24 10:59:41 +0000 |
commit | a9f1fec61232ffd3c80b7a6589bcca31b8524aff (patch) | |
tree | 481c9e95cb4ab7839824f6a8e3f2805db86fd0a7 /crawl-ref/source/acr.cc | |
parent | e6e4a21b991c9f51b42b992fc4137791ea08c987 (diff) | |
download | crawl-ref-a9f1fec61232ffd3c80b7a6589bcca31b8524aff.tar.gz crawl-ref-a9f1fec61232ffd3c80b7a6589bcca31b8524aff.zip |
Helm card can now have a shield effect. (Well, sort of.)
Antimagic shouldn't cancel kenku permaflight.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1635 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r-- | crawl-ref/source/acr.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index 731427fb98..35f57a4f3c 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -1843,6 +1843,15 @@ static void decrement_durations() you.redraw_armour_class = 1; } + if (you.duration[DUR_MAGIC_SHIELD] > 1) + you.duration[DUR_MAGIC_SHIELD]--; + else if (you.duration[DUR_MAGIC_SHIELD] == 1) + { + you.duration[DUR_MAGIC_SHIELD] = 0; + mpr("Your magical shield disappears.", MSGCH_DURATION); + you.redraw_armour_class = 1; + } + if (you.duration[DUR_STONESKIN] > 1) you.duration[DUR_STONESKIN]--; else if (you.duration[DUR_STONESKIN] == 1) |