summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abl-show.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-15 23:20:44 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-15 23:20:44 +0000
commitc5f460f024c071a1c56980dc89ab15b2cf860f8c (patch)
tree0538c9d2a0b9c8dff1b95331f1e12b68f645f1fc /crawl-ref/source/abl-show.cc
parentb845b3611b4c5cb1798618320211e0532de969ae (diff)
downloadcrawl-ref-c5f460f024c071a1c56980dc89ab15b2cf860f8c.tar.gz
crawl-ref-c5f460f024c071a1c56980dc89ab15b2cf860f8c.zip
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
Diffstat (limited to 'crawl-ref/source/abl-show.cc')
-rw-r--r--crawl-ref/source/abl-show.cc11
1 files changed, 2 insertions, 9 deletions
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;