summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-29 09:50:59 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-29 09:50:59 +0000
commit537d9d5e0f922b3b0731f922d0eac7fd94dc2c27 (patch)
tree7f0fbdf5c579367d5333d80bbff53bba3f731dd7 /crawl-ref/source/beam.cc
parente77b4926f95f192504f877d7f312efbcd90d774f (diff)
downloadcrawl-ref-537d9d5e0f922b3b0731f922d0eac7fd94dc2c27.tar.gz
crawl-ref-537d9d5e0f922b3b0731f922d0eac7fd94dc2c27.zip
Fixed monster thrown weapon preservation rate.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2656 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index 137bd161e9..abbcefe830 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -2461,7 +2461,8 @@ void beam_drop_object( bolt &beam, item_def *item, int x, int y )
if (item->base_type != OBJ_MISSILES || !one_chance_in(chance))
copy_item_to_grid( *item, x, y, 1 );
}
- else if (MON_KILL(beam.thrower) && coinflip()) // monster threw it.
+ else if (MON_KILL(beam.thrower)
+ && (item->base_type != OBJ_MISSILES || coinflip()))
{
copy_item_to_grid( *item, x, y, 1 );
} // if (thing_throw == 2) ...