diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-12 09:42:18 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-12 09:42:18 +0000 |
commit | a6faebe0c260af46518fa09ed6fce3992ce478a2 (patch) | |
tree | bec92417252c5c008a0b6a068f6915cd391053b8 /crawl-ref/source/beam.cc | |
parent | 9695466e98c746bf2f137c6ce2c018609ff58faa (diff) | |
download | crawl-ref-a6faebe0c260af46518fa09ed6fce3992ce478a2.tar.gz crawl-ref-a6faebe0c260af46518fa09ed6fce3992ce478a2.zip |
Oops, don't touch beam.foe_count if the "beam" is actually a missile.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5760 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r-- | crawl-ref/source/beam.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index d353b14f5d..50b7af8611 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -4229,7 +4229,9 @@ static int _affect_monster(bolt &beam, monsters *mon, item_def *item) return 0; } - if (!mons_atts_aligned(beam.attitude, mons_attitude(mon))) + if (thrower == KILL_YOU_MISSILE) + ; + else if (!mons_atts_aligned(beam.attitude, mons_attitude(mon))) { beam.foe_count += 1; beam.foe_power += mons_power(mons_type); |