diff options
-rw-r--r-- | crawl-ref/source/beam.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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; |