diff options
author | Chris Campbell <chriscampbell89@gmail.com> | 2014-05-23 00:10:18 +0100 |
---|---|---|
committer | Chris Campbell <chriscampbell89@gmail.com> | 2014-05-23 00:10:18 +0100 |
commit | 7ec5f86ad8f03ffe130d461a900d2a1561594d7e (patch) | |
tree | 5778d627c790fe94ab71cc0024778213a024e0fb /crawl-ref/source/spl-book.cc | |
parent | a23ad50d6a454741291816d1a0c703c5458af4f8 (diff) | |
download | crawl-ref-7ec5f86ad8f03ffe130d461a900d2a1561594d7e.tar.gz crawl-ref-7ec5f86ad8f03ffe130d461a900d2a1561594d7e.zip |
Allow wisp form to memorise spells
Diffstat (limited to 'crawl-ref/source/spl-book.cc')
-rw-r--r-- | crawl-ref/source/spl-book.cc | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/crawl-ref/source/spl-book.cc b/crawl-ref/source/spl-book.cc index ecaba1a469..b5c26c0825 100644 --- a/crawl-ref/source/spl-book.cc +++ b/crawl-ref/source/spl-book.cc @@ -501,7 +501,7 @@ bool you_cannot_memorise(spell_type spell) return you_cannot_memorise(spell, temp); } -// form is set to true if a form (lich or wisp) prevents us from +// form is set to true if a form (lich) prevents us from // memorising the spell. bool you_cannot_memorise(spell_type spell, bool &form) { @@ -582,14 +582,6 @@ bool you_cannot_memorise(spell_type spell, bool &form) } #endif - if (you.form == TRAN_WISP) - { - // If we were otherwise allowed to memorise the spell. - if (!rc) - form = true; - return true; - } - if (you.species == SP_FORMICID && (spell == SPELL_BLINK || spell == SPELL_CONTROL_TELEPORT @@ -678,13 +670,6 @@ static bool _get_mem_list(spell_list &mem_spells, bool just_check = false, spell_type current_spell = SPELL_NO_SPELL) { - if (you.form == TRAN_WISP) - { - if (!just_check) - mprf(MSGCH_PROMPT, "You can't handle any books in this form."); - return false; - } - bool book_errors = false; unsigned int num_on_ground = 0; unsigned int num_books = 0; |