summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 48b2a81b15..1e03712a56 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -2407,7 +2407,9 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus,
bool unwielded = false;
if (throw_2 == you.equip[EQ_WEAPON] && thrown.quantity == 1)
{
- unwield_item();
+ if (!wield_weapon(true, PROMPT_GOT_SPECIAL))
+ return (false);
+
unwielded = true;
}