From c5f460f024c071a1c56980dc89ab15b2cf860f8c Mon Sep 17 00:00:00 2001 From: dolorous Date: Thu, 15 Jan 2009 23:20:44 +0000 Subject: Add various beam explosion-related cleanups. Also, make cleansing flame an explosion of BEAM_HOLY around the player instead of an aimable effect. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8467 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/abl-show.cc | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'crawl-ref/source/abl-show.cc') diff --git a/crawl-ref/source/abl-show.cc b/crawl-ref/source/abl-show.cc index 447a72ee43..5e52268867 100644 --- a/crawl-ref/source/abl-show.cc +++ b/crawl-ref/source/abl-show.cc @@ -1503,15 +1503,8 @@ static bool _do_ability(const ability_def& abil) break; case ABIL_TSO_CLEANSING_FLAME: - beam.range = 8; - if (!spell_direction(spd, beam, DIR_NONE, TARG_ENEMY, beam.range)) - return (false); - - if (!zapping(ZAP_CLEANSING_FLAME, 20 + you.skills[SK_INVOCATIONS] * 6, - beam, true)) - { - return (false); - } + cleansing_flame(10 + (you.skills[SK_INVOCATIONS] * 7) / 6, + CLEANSING_FLAME_INVOCATION); exercise(SK_INVOCATIONS, 3 + random2(6)); break; -- cgit v1.2.3-54-g00ecf