summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-10 21:26:29 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-10 22:04:09 -0600
commitaf420e351770b201f4d77d1892169b4111727c91 (patch)
tree0c7d51c3c2bd5fd6fc4f79b5124cd053de4cc566 /crawl-ref/source/spl-cast.cc
parent42876e1c49d03e594d7d129bd96fd9874ebe0106 (diff)
downloadcrawl-ref-af420e351770b201f4d77d1892169b4111727c91.tar.gz
crawl-ref-af420e351770b201f4d77d1892169b4111727c91.zip
Replace actor::is_unholy() with actor::undead_or_demonic().
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r--crawl-ref/source/spl-cast.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index 70d1002139..c9bfabc9fe 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -1003,7 +1003,7 @@ static bool _vampire_cannot_cast(spell_type spell)
static bool _spell_is_uncastable(spell_type spell)
{
- if (you.is_unholy() && is_holy_spell(spell))
+ if (you.undead_or_demonic() && is_holy_spell(spell))
{
mpr("You can't use this type of magic!");
return (true);
@@ -1011,7 +1011,7 @@ static bool _spell_is_uncastable(spell_type spell)
// Normally undead can't memorise these spells, so this check is
// to catch those in Lich form. As such, we allow the Lich form
- // to be extended here. -- bwr
+ // to be extended here. - bwr
if (spell != SPELL_NECROMUTATION && you_cannot_memorise(spell))
{
mpr( "You cannot cast that spell in your current form!" );