From 8c8da9371748f82fd91233206985e552b837de9a Mon Sep 17 00:00:00 2001 From: Stefan O'Rear Date: Sun, 15 Nov 2009 01:05:16 -0800 Subject: Allow Corona to work in ranged combat This also means that centaurs will have a much easier time shooting at paladins. Could become a problem. --- crawl-ref/source/beam.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crawl-ref/source/beam.cc') diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index 1c54f2914e..e35894dea9 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -3718,6 +3718,9 @@ bool bolt::misses_player() if (you.invisible() && !can_see_invis) real_tohit /= 2; + if (you.backlit()) + real_tohit += 2 + random2(8); + // Wow, what a horrid test. These cannot be blocked or dodged if (!is_beam && !is_blockable()) return (false); @@ -4885,6 +4888,9 @@ void bolt::affect_monster(monsters* mon) if (mon->invisible() && !can_see_invis) beam_hit /= 2; + if (mon->backlit()) + beam_hit += 2 + random2(8); + defer_rand r; int rand_ev = random2(mon->ev); bool dmsl = mon->type == MONS_KIRKE; -- cgit v1.2.3-54-g00ecf