From 3a4159644bb83b286ae10d5f37fcdbf81dced398 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sun, 20 Jul 2008 17:21:09 +0000 Subject: Pan overhaul: Allow monsters (including player ghosts) to use fire storm and ice storm, give Lom Lobon ice storm and Cerebov fire storm. Lom Lobon also gets conjure ball lightning. Mnoleg gets Summon Horrible Things instead of polymorph/shadow creatures. Gloorx gets symbol of torment instead of summon demon. Hellion hellfire burst now behaves the same way for both hellion vs player and hellion vs monster. Merged monster vs player and m vs m handling for direct spell effects such as smiting. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6621 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spl-util.cc | 7 +++++++ 1 file changed, 7 insertions(+) (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 e64c2f089f..e36d9528f2 100644 --- a/crawl-ref/source/spl-util.cc +++ b/crawl-ref/source/spl-util.cc @@ -235,6 +235,13 @@ bool spell_needs_tracer(spell_type spell) return (_seekspell(spell)->ms_needs_tracer); } +// Checks if the spell is an explosion that can be placed anywhere even without +// an unobstructed beam path, such as fire storm. +bool spell_is_direct_explosion(spell_type spell) +{ + return (spell == SPELL_FIRE_STORM || spell == SPELL_HELLFIRE_BURST); +} + bool spell_needs_foe(spell_type spell) { return (!_seekspell(spell)->ms_utility); -- cgit v1.2.3-54-g00ecf