diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-08 09:41:37 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-08 09:41:37 +0000 |
commit | d247c643b6236c4c40f740ab0c91234c3214fae9 (patch) | |
tree | 75d4b400a39e9a8aa6ad8fce94c718cff12ea42a /crawl-ref/source/beam.cc | |
parent | 2f8d39149cbaf3c457fe550b7e2746156364175d (diff) | |
download | crawl-ref-d247c643b6236c4c40f740ab0c91234c3214fae9.tar.gz crawl-ref-d247c643b6236c4c40f740ab0c91234c3214fae9.zip |
Some code cleanup, inspired by [2483180].
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8324 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r-- | crawl-ref/source/beam.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index 1c82831ed9..e38023ebb8 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -3897,6 +3897,10 @@ void bolt::affect_player() was_affected = true; } } + + // Acid. + if (flavour == BEAM_ACID) + splash_with_acid(5, affects_items); if (affects_items) { @@ -3912,9 +3916,6 @@ void bolt::affect_player() if (flavour == BEAM_COLD) expose_player_to_element(BEAM_COLD, burn_power); - if (flavour == BEAM_ACID) - splash_with_acid(5); - // Spore pops. if (in_explosion_phase && flavour == BEAM_SPORE) expose_player_to_element(BEAM_SPORE, burn_power); |