summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dungeon.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r--crawl-ref/source/dungeon.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc
index aab2d4e0e4..0926c5f9ce 100644
--- a/crawl-ref/source/dungeon.cc
+++ b/crawl-ref/source/dungeon.cc
@@ -4875,6 +4875,10 @@ static void _dgn_give_mon_spec_items(mons_spec &mspec,
destroy_item(item_made, true);
}
}
+
+ // Pre-wield ranged weapons.
+ if (mon.inv[MSLOT_WEAPON] == NON_ITEM && mon.inv[MSLOT_ALT_WEAPON] != NON_ITEM)
+ mon.swap_weapons(false);
}