summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-book.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-25 22:33:46 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-25 22:33:46 +0000
commitfe66a480da9ae461070c73f7690922b240ff3ace (patch)
tree059cfa84673453ef3b2b19196ff72ae76fb32ce4 /crawl-ref/source/spl-book.cc
parent9703c86777b2d8acabc5a25f407c9ee0d045b0e1 (diff)
downloadcrawl-ref-fe66a480da9ae461070c73f7690922b240ff3ace.tar.gz
crawl-ref-fe66a480da9ae461070c73f7690922b240ff3ace.zip
Since demonspawn players have demonic holiness, keep them from
memorizing and casting holy spells. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6993 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-book.cc')
-rw-r--r--crawl-ref/source/spl-book.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/spl-book.cc b/crawl-ref/source/spl-book.cc
index f6ba0eb9c6..4b6df7052f 100644
--- a/crawl-ref/source/spl-book.cc
+++ b/crawl-ref/source/spl-book.cc
@@ -1246,9 +1246,10 @@ bool learn_spell(int book)
return (false);
}
- if (you.is_undead && spell_typematch(specspell, SPTYP_HOLY))
+ if ((you.is_undead || you.species == SP_DEMONSPAWN)
+ && spell_typematch(specspell, SPTYP_HOLY))
{
- mpr("You cannot use this type of magic!");
+ mpr("You can't use this type of magic!");
return (false);
}