summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-17 20:31:11 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-17 20:31:11 +0000
commit5cd75466821c22f32d5c0f3bda550d2519e5f9f1 (patch)
treefbe0170f57904db78a4505565654fd99d52eaa66 /crawl-ref/source/invent.cc
parent5a624920ca9ceafa0f70f7edee7af630c934fa3c (diff)
downloadcrawl-ref-5cd75466821c22f32d5c0f3bda550d2519e5f9f1.tar.gz
crawl-ref-5cd75466821c22f32d5c0f3bda550d2519e5f9f1.zip
Fix part of [2823233]: Runes shouldn't be listed as evokable inventory
items. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10251 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r--crawl-ref/source/invent.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index d0784ca0f4..c074313eee 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -1728,7 +1728,6 @@ bool item_is_evokable(const item_def &item, bool known, bool all_wands,
if (entry->evoke_func && item_type_known(item))
{
-
if (item_is_equipped(item))
return (true);
@@ -1807,7 +1806,8 @@ bool item_is_evokable(const item_def &item, bool known, bool all_wands,
}
if (item.sub_type != MISC_LANTERN_OF_SHADOWS
- && item.sub_type != MISC_EMPTY_EBONY_CASKET)
+ && item.sub_type != MISC_EMPTY_EBONY_CASKET
+ && item.sub_type != MISC_RUNE_OF_ZOT)
{
return (true);
}