diff options
Diffstat (limited to 'crawl-ref/source/quiver.cc')
-rw-r--r-- | crawl-ref/source/quiver.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/crawl-ref/source/quiver.cc b/crawl-ref/source/quiver.cc index 8aa598d480..aa9f38e768 100644 --- a/crawl-ref/source/quiver.cc +++ b/crawl-ref/source/quiver.cc @@ -168,6 +168,22 @@ void choose_item_for_quiver() : "hand crossbows"); return; } + else if (slot == you.equip[EQ_WEAPON]) + { + mpr("You can't quiver wielded items."); + return; + } + else + { + for (int i = 0; i < NUM_EQUIP; i++) + { + if (you.equip[i] == slot) + { + mpr("You can't quiver worn items."); + return; + } + } + } const item_def item = you.inv[slot]; ASSERT(is_valid_item(item)); |