diff options
-rw-r--r-- | crawl-ref/source/goditem.cc | 13 | ||||
-rw-r--r-- | crawl-ref/source/spl-cast.cc | 2 | ||||
-rw-r--r-- | crawl-ref/source/wiz-mon.cc | 2 |
3 files changed, 9 insertions, 8 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)); 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); diff --git a/crawl-ref/source/wiz-mon.cc b/crawl-ref/source/wiz-mon.cc index ce43e02d8f..bee9d14427 100644 --- a/crawl-ref/source/wiz-mon.cc +++ b/crawl-ref/source/wiz-mon.cc @@ -1180,7 +1180,7 @@ void debug_miscast( int target_index ) } } - if (school == SPTYP_HOLY || (disciplines & SPTYP_HOLY)) + if (is_holy_spell(spell)) { mpr("Can't miscast holy spells."); return; |