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:07:22 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-10 22:04:08 -0600
commit46a9a48fae192feb0ee6440bee0623a8c026163c (patch)
tree418f286604324a3d758d779a30a6b789d578916b /crawl-ref/source/spl-cast.cc
parent5801d6f24244af3a7d331ec7f6495c939b771923 (diff)
downloadcrawl-ref-46a9a48fae192feb0ee6440bee0623a8c026163c.tar.gz
crawl-ref-46a9a48fae192feb0ee6440bee0623a8c026163c.zip
Use wrapper functions properly when checking for holy spells.
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r--crawl-ref/source/spl-cast.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index c3ed79ebb9..70d1002139 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() && spell_typematch(spell, SPTYP_HOLY))
+ if (you.is_unholy() && is_holy_spell(spell))
{
mpr("You can't use this type of magic!");
return (true);