diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-05-07 22:13:27 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-05-07 22:13:27 +0000 |
commit | c8dad26d1f8ad2c61d515bff20b58f8eeae5e9b2 (patch) | |
tree | 439f0ec26be37c427999e7dccb473ea33d1d5a45 /crawl-ref/source/beam.cc | |
parent | e767f02fd8a3b3695f8ecff386a063bc92e5dc11 (diff) | |
download | crawl-ref-c8dad26d1f8ad2c61d515bff20b58f8eeae5e9b2.tar.gz crawl-ref-c8dad26d1f8ad2c61d515bff20b58f8eeae5e9b2.zip |
Amulet of inaccuracy now affects beams.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1421 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r-- | crawl-ref/source/beam.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index 5f5202b0a3..d00aeba43f 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -1219,6 +1219,13 @@ static void zappy( zap_type z_type, int power, struct bolt &pbolt ) pbolt.obvious_effect = true; break; } // end of switch + + if ( wearing_amulet(AMU_INACCURACY) ) + { + pbolt.hit -= 5; + if ( pbolt.hit < 0 ) + pbolt.hit = 0; + } } // end zappy() /* NEW (GDL): |