diff options
author | BlackSheep <chris.terenzi@gmail.com> | 2013-08-15 14:27:36 -0400 |
---|---|---|
committer | Pekka Lampila <pekka.lampila@iki.fi> | 2014-01-30 07:57:48 +0200 |
commit | c799e943ee047d68b1932417d28eb06b0f6ddf94 (patch) | |
tree | e99686af2ef8f8aab2f0984933599b1e47b1b5eb /crawl-ref/source/invent.cc | |
parent | 8df0fbc07b74c87a83e9bec2611e893288bc6d11 (diff) | |
download | crawl-ref-c799e943ee047d68b1932417d28eb06b0f6ddf94.tar.gz crawl-ref-c799e943ee047d68b1932417d28eb06b0f6ddf94.zip |
Let elemental staves enable training Evocations
Also fix unknown staves allowing Evocations training.
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r-- | crawl-ref/source/invent.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc index c6e7470518..1b01a4a3f0 100644 --- a/crawl-ref/source/invent.cc +++ b/crawl-ref/source/invent.cc @@ -2133,7 +2133,7 @@ bool item_is_evokable(const item_def &item, bool reach, bool known, return true; case OBJ_STAVES: - if (!known && !item_type_known(item) + if (known && !item_type_known(item) || item.sub_type == STAFF_ENERGY && item_type_known(item)) { |