diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-10 21:07:22 -0600 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-10 22:04:08 -0600 |
commit | 46a9a48fae192feb0ee6440bee0623a8c026163c (patch) | |
tree | 418f286604324a3d758d779a30a6b789d578916b /crawl-ref/source/goditem.cc | |
parent | 5801d6f24244af3a7d331ec7f6495c939b771923 (diff) | |
download | crawl-ref-46a9a48fae192feb0ee6440bee0623a8c026163c.tar.gz crawl-ref-46a9a48fae192feb0ee6440bee0623a8c026163c.zip |
Use wrapper functions properly when checking for holy spells.
Diffstat (limited to 'crawl-ref/source/goditem.cc')
-rw-r--r-- | crawl-ref/source/goditem.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/crawl-ref/source/goditem.cc b/crawl-ref/source/goditem.cc index 3ea38375d9..24eb5f1e28 100644 --- a/crawl-ref/source/goditem.cc +++ b/crawl-ref/source/goditem.cc @@ -557,15 +557,15 @@ bool god_dislikes_spell_type(spell_type spell, god_type god) return (true); } + // Holy spells are probably too useful for Xom to find them + // interesting. + if (is_holy_spell(spell)) + return (true); + // Things are more fun for Xom the less the player knows in // advance. if (disciplines & SPTYP_DIVINATION) return (true); - - // Holy spells are probably too useful for Xom to find them - // interesting. - if (disciplines & SPTYP_HOLY) - return (true); break; case GOD_ELYVILON: @@ -601,7 +601,8 @@ bool god_dislikes_spell_discipline(int discipline, god_type god) return (is_holy_discipline(discipline)); case GOD_XOM: - return (discipline & (SPTYP_DIVINATION | SPTYP_HOLY)); + return (is_holy_discipline(discipline) + || discipline & (SPTYP_DIVINATION)); case GOD_ELYVILON: return (discipline & (SPTYP_CONJURATION | SPTYP_SUMMONING)); |