From 16e9270f56188ed993ec5a9755fe3874158ab40c Mon Sep 17 00:00:00 2001 From: Chris Campbell Date: Wed, 9 Jul 2014 09:54:26 +0100 Subject: [PATCH] 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. --- crawl-ref/source/beam.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index a1c388d..a0f2d4c 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") -- 1.8.5