summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-07-05 22:42:53 -0400
committerNeil Moore <neil@s-z.org>2014-07-05 22:42:53 -0400
commitd0d484c5d910e44b68ba0b205a658937d87b23f7 (patch)
treea795129d7b83e2b614e8cac2f1bcf945fdc33a13 /crawl-ref/source/item_use.cc
parent898e01c95a4aa22a1362c88f1228dfe502ce4451 (diff)
downloadcrawl-ref-d0d484c5d910e44b68ba0b205a658937d87b23f7.tar.gz
crawl-ref-d0d484c5d910e44b68ba0b205a658937d87b23f7.zip
Don't try to swap to unwieldable large rocks, either.
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 dc3ad4ab31..eb27db3ea7 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -248,7 +248,9 @@ static bool _valid_weapon_swap(const item_def &item)
}
if (item.base_type == OBJ_MISSILES
- && (item.sub_type == MI_STONE || item.sub_type == MI_LARGE_ROCK))
+ && (item.sub_type == MI_STONE
+ || item.sub_type == MI_LARGE_ROCK
+ && you.could_wield(item, true, true)))
{
return you.has_spell(SPELL_SANDBLAST);
}