summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-util.cc
diff options
context:
space:
mode:
authorevktalo <evktalo@users.sourceforge.net>2009-09-30 21:49:06 +0300
committerevktalo <evktalo@users.sourceforge.net>2009-09-30 21:49:06 +0300
commit088bde53337992e16d041865ed3f29a251c5c55b (patch)
treeae485dbf708804869a1cd811134cd9455310fc3c /crawl-ref/source/spl-util.cc
parent3d29622183c8faefd8135c3f91b847e427283dc0 (diff)
downloadcrawl-ref-088bde53337992e16d041865ed3f29a251c5c55b.tar.gz
crawl-ref-088bde53337992e16d041865ed3f29a251c5c55b.zip
Generalize the check for Vehumet supported spells. Add Shatter and Lee's Rapid Deconstruction (SPELL_FRAGMENTATION) to the list.
Signed-off-by: evktalo <evktalo@users.sourceforge.net>
Diffstat (limited to 'crawl-ref/source/spl-util.cc')
-rw-r--r--crawl-ref/source/spl-util.cc4
1 files changed, 2 insertions, 2 deletions
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))