summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makeitem.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r--crawl-ref/source/makeitem.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc
index f52373fb6c..5d201de9a1 100644
--- a/crawl-ref/source/makeitem.cc
+++ b/crawl-ref/source/makeitem.cc
@@ -3714,10 +3714,10 @@ static void _give_ammo(monsters *mon, int level,
else
{
// Sanity check to avoid useless brands.
- const int bow_brand = get_bow_brand(*launcher);
+ const int bow_brand = get_weapon_brand(*launcher);
const int ammo_brand = get_ammo_brand(mitm[thing_created]);
- if (bow_brand == SPWPN_FLAME && ammo_brand != SPMSL_NORMAL
- || bow_brand == SPWPN_FROST && ammo_brand != SPMSL_NORMAL)
+ if (ammo_brand != SPMSL_NORMAL
+ && (bow_brand == SPWPN_FLAME || bow_brand == SPWPN_FROST))
{
mitm[thing_created].special = SPMSL_NORMAL;
}