summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r--crawl-ref/source/spl-cast.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index c9bfabc9fe..9a48b2ad31 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -825,11 +825,6 @@ static bool _spell_is_utility_spell(spell_type spell_id)
SPTYP_ENCHANTMENT | SPTYP_TRANSLOCATION | SPTYP_DIVINATION));
}
-static bool _spell_is_unholy(spell_type spell_id)
-{
- return (testbits(get_spell_flags(spell_id), SPFLAG_UNHOLY));
-}
-
bool maybe_identify_staff(item_def &item, spell_type spell)
{
if (item_type_known(item))
@@ -946,7 +941,7 @@ static void _spellcasting_side_effects(spell_type spell, bool idonly = false)
// Self-banishment gets a special exemption - you're there to spread
// light.
- if (_spell_is_unholy(spell)
+ if (is_unholy_spell(spell)
&& !you.banished
&& !crawl_state.is_god_acting())
{