diff options
Diffstat (limited to 'crawl-ref/source/spl-book.cc')
-rw-r--r-- | crawl-ref/source/spl-book.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/crawl-ref/source/spl-book.cc b/crawl-ref/source/spl-book.cc index 2f850333c0..c5fb33aebd 100644 --- a/crawl-ref/source/spl-book.cc +++ b/crawl-ref/source/spl-book.cc @@ -1231,6 +1231,18 @@ bool learn_spell(void) return (false); } + if (you.conf) + { + mpr("You are too confused!"); + return (false); + } + + if (you.berserker) + { + canned_msg(MSG_TOO_BERSERK); + return (false); + } + if (!which_spellbook( book, spell )) return (false); |