summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-act.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/mon-act.cc')
-rw-r--r--crawl-ref/source/mon-act.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-act.cc b/crawl-ref/source/mon-act.cc
index 3fc1cea5a0..31d1c990a7 100644
--- a/crawl-ref/source/mon-act.cc
+++ b/crawl-ref/source/mon-act.cc
@@ -1139,7 +1139,12 @@ static bool _mons_throw(struct monsters *monster, struct bolt &pbolt,
{
const mon_attack_def attk = mons_attack_spec(monster, 0);
if (attk.type == AT_SHOOT)
- ammoDamBonus += random2avg(attk.damage, 2);
+ {
+ if (projected == LRET_THROWN && wepClass == OBJ_MISSILES)
+ ammoHitBonus += random2avg(attk.damage, 2);
+ else
+ ammoDamBonus += random2avg(attk.damage, 2);
+ }
}
if (projected == LRET_THROWN)