summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-data.h
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-09 09:41:40 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-09 09:41:40 -0600
commit8bb770637637850f522fdeb873e2d0b05eb0be24 (patch)
treed25013043122283a4df982d5113b90829eb4758c /crawl-ref/source/spl-data.h
parent8b0bdcb6271b2ccad9cec8b4cf8b4a464946ed06 (diff)
downloadcrawl-ref-8bb770637637850f522fdeb873e2d0b05eb0be24.tar.gz
crawl-ref-8bb770637637850f522fdeb873e2d0b05eb0be24.zip
Add an is_holy() function to the actor interface.
This is consistent with similar functions in that it checks not only for MH_HOLY holiness, but whether the monster is a priest of a good god (currently, there are none) and whether it uses holy spells (currently, there are none after the changes described below). Minor and Major Healing are now enchantments rather than holy spells. The beam code treats them as such; wands of healing aren't holy items the way e.g. wands of draining are evil items; and unholy monsters (among others, Lom Lobon!) can cast these spells.
Diffstat (limited to 'crawl-ref/source/spl-data.h')
-rw-r--r--crawl-ref/source/spl-data.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spl-data.h b/crawl-ref/source/spl-data.h
index 8a3dcb0623..444909f323 100644
--- a/crawl-ref/source/spl-data.h
+++ b/crawl-ref/source/spl-data.h
@@ -2005,7 +2005,7 @@
{
SPELL_MINOR_HEALING, "Minor Healing",
- SPTYP_HOLY,
+ SPTYP_ENCHANTMENT, // was SPTYP_HOLY
SPFLAG_RECOVERY | SPFLAG_HELPFUL | SPFLAG_MONSTER,
2,
0,
@@ -2018,7 +2018,7 @@
{
SPELL_MAJOR_HEALING, "Major Healing",
- SPTYP_HOLY,
+ SPTYP_ENCHANTMENT, // was SPTYP_HOLY
SPFLAG_RECOVERY | SPFLAG_HELPFUL | SPFLAG_MONSTER,
6,
0,