summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r--crawl-ref/source/spells2.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc
index 495f92fe42..7b28f4b04c 100644
--- a/crawl-ref/source/spells2.cc
+++ b/crawl-ref/source/spells2.cc
@@ -819,7 +819,7 @@ bool vampiric_drain(int pow, const dist &vmove)
return (true);
}
-bool burn_freeze(int pow, beam_type flavour, int targetmon )
+bool burn_freeze(int pow, beam_type flavour, int targetmon)
{
pow = std::min(25, pow);
@@ -862,23 +862,21 @@ bool burn_freeze(int pow, beam_type flavour, int targetmon )
beam.flavour = flavour;
beam.thrower = KILL_YOU;
- int hurted = roll_dice(1, 3 + pow / 3);
- hurted = mons_adjust_flavoured(monster, beam, hurted);
+ const int orig_hurted = roll_dice(1, 3 + pow / 3);
+ int hurted = mons_adjust_flavoured(monster, beam, orig_hurted);
monster->hurt(&you, hurted);
if (monster->alive())
{
+ monster->expose_to_element(flavour, orig_hurted);
print_wounds(monster);
if (flavour == BEAM_COLD)
{
- if (mons_class_flag(monster->type, M_COLD_BLOOD) && coinflip())
- monster->add_ench(ENCH_SLOW);
-
const int cold_res = mons_res_cold( monster );
if (cold_res <= 0)
{
- const int stun = (1 - cold_res) * random2( 2 + pow / 5 );
+ const int stun = (1 - cold_res) * random2(2 + pow/5);
monster->speed_increment -= stun;
}
}