summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dat/lua/wield.lua
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/dat/lua/wield.lua')
-rw-r--r--crawl-ref/source/dat/lua/wield.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/dat/lua/wield.lua b/crawl-ref/source/dat/lua/wield.lua
index e4fe9951e3..b068b543de 100644
--- a/crawl-ref/source/dat/lua/wield.lua
+++ b/crawl-ref/source/dat/lua/wield.lua
@@ -32,13 +32,15 @@ function ch_item_wieldable(it)
end
if spells["Sandblast"]
- and string.find( item.name(it, "a"), " stones?$" )
+ and item.class(it, true) == "missile"
+ and string.find( item.name(it, "a"), " stones?" )
then
return true
end
if spells["Sticks to Snakes"]
- and string.find( item.name(it, "a"), " arrows?$" )
+ and item.class(it, true) == "missile"
+ and string.find( item.name(it, "a"), " arrows?" )
then
return true
end