summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2014-07-09 09:54:26 +0100
committerChris Campbell <chriscampbell89@gmail.com>2014-07-09 09:57:07 +0100
commit16e9270f56188ed993ec5a9755fe3874158ab40c (patch)
treeca855d1e920a4014e239095feae753308665fdfc /crawl-ref/source/beam.cc
parentb8f145ed9a292a379b28954b6333dca665061129 (diff)
downloadcrawl-ref-16e9270f56188ed993ec5a9755fe3874158ab40c.tar.gz
crawl-ref-16e9270f56188ed993ec5a9755fe3874158ab40c.zip
Fix sticky flame duration depending on the HD of the target (Patashu)
As far as I can tell, this was changed by 5e60d799077, and the duration previously depended on the initial damage dealt by the sticky flame.
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index a1c388d0fa..a0f2d4c020 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -4586,7 +4586,7 @@ void bolt::monster_post_hit(monster* mon, int dmg)
// Sticky flame.
if (name == "sticky flame" || name == "splash of liquid fire")
{
- const int levels = min(4, 1 + random2(mon->hit_dice) / 2);
+ const int levels = min(4, 1 + random2(dmg) / 2);
napalm_monster(mon, agent(), levels);
if (name == "splash of liquid fire")