summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-book.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2013-07-30 16:29:37 -0400
committerNeil Moore <neil@s-z.org>2013-07-30 16:29:37 -0400
commitc67cb32cf693618954cf9a0211d99e07e5ed05b4 (patch)
treeb168eb121d4ae89e233627fb5852c8cb1d46b5a3 /crawl-ref/source/spl-book.cc
parent83314a393d6b1ce958e77fe613aedebf71d2a732 (diff)
downloadcrawl-ref-c67cb32cf693618954cf9a0211d99e07e5ed05b4.tar.gz
crawl-ref-c67cb32cf693618954cf9a0211d99e07e5ed05b4.zip
Forbid Cure Poison for Gargoyles.
They are completely immune to poison, even across changes of form.
Diffstat (limited to 'crawl-ref/source/spl-book.cc')
-rw-r--r--crawl-ref/source/spl-book.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/spl-book.cc b/crawl-ref/source/spl-book.cc
index 27119abdc4..54c5db7e9e 100644
--- a/crawl-ref/source/spl-book.cc
+++ b/crawl-ref/source/spl-book.cc
@@ -549,6 +549,9 @@ bool you_cannot_memorise(spell_type spell, bool &form)
form = true;
}
+ if (you.species == SP_GARGOYLE && spell == SPELL_CURE_POISON)
+ rc = true, form = false;
+
if (you.species == SP_DEEP_DWARF && spell == SPELL_REGENERATION)
rc = true, form = false;