summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-08 22:09:25 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-08 22:09:25 +0000
commitf55a8b913e4fb43166f6a3cbd083a4a0f5154358 (patch)
treeeb282082a88a6f133eeefc11651769d856dacbf0 /crawl-ref/source/invent.cc
parent1b7c5aa3c413b3469ada00e521b37aeca57abdd5 (diff)
downloadcrawl-ref-f55a8b913e4fb43166f6a3cbd083a4a0f5154358.tar.gz
crawl-ref-f55a8b913e4fb43166f6a3cbd083a4a0f5154358.zip
Implement FR 2489034: Disallow known scrolls of enchant
armour/recharging on armour that cannot be enchanted or items that cannot be recharged, respectively. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8337 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r--crawl-ref/source/invent.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index 5c63d757d9..461107161a 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -875,7 +875,7 @@ static bool _item_class_selected(const item_def &i, int selector)
return (itype == OBJ_SCROLLS || itype == OBJ_BOOKS);
case OSEL_RECHARGE:
- return (item_is_rechargeable(i, true));
+ return (item_is_rechargeable(i, true, true));
case OSEL_ENCH_ARM:
return (is_enchantable_armour(i, true, true));