From 088bde53337992e16d041865ed3f29a251c5c55b Mon Sep 17 00:00:00 2001 From: evktalo Date: Wed, 30 Sep 2009 21:49:06 +0300 Subject: Generalize the check for Vehumet supported spells. Add Shatter and Lee's Rapid Deconstruction (SPELL_FRAGMENTATION) to the list. Signed-off-by: evktalo --- crawl-ref/source/spl-util.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/spl-util.cc') diff --git a/crawl-ref/source/spl-util.cc b/crawl-ref/source/spl-util.cc index 15e355f103..9c4860de9b 100644 --- a/crawl-ref/source/spl-util.cc +++ b/crawl-ref/source/spl-util.cc @@ -388,7 +388,7 @@ bool spell_sanctuary_castable(spell_type spell) // for Xom acting (more power = more likely to grab his attention) {dlb} int spell_mana(spell_type which_spell) { - if(spell_typematch(which_spell, SPTYP_CONJURATION | SPTYP_SUMMONING) + if(vehumet_supports_spell(which_spell) && you.religion == GOD_VEHUMET && !player_under_penance() && you.piety >= piety_breakpoint(3) @@ -1003,7 +1003,7 @@ int spell_range(spell_type spell, int pow, bool real_cast, bool player_spell) ASSERT(maxrange >= minrange); if(player_spell - && spell_typematch(spell, SPTYP_CONJURATION) + && vehumet_supports_spell(spell) && you.religion == GOD_VEHUMET && !player_under_penance() && you.piety >= piety_breakpoint(2)) -- cgit v1.2.3-54-g00ecf