diff options
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r-- | crawl-ref/source/beam.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index 394760c4ce..99b1e1b0ab 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -3490,7 +3490,8 @@ bool bolt::misses_player() return (false); } -void bolt::affect_player_enchantment() { +void bolt::affect_player_enchantment() +{ if ((has_saving_throw() || flavour == BEAM_POLYMORPH) && you_resist_magic(ench_power)) { @@ -4606,9 +4607,9 @@ bool _ench_flavour_affects_monster(beam_type flavour, const monsters* mon) break; case BEAM_SLEEP: - rc = !mon->has_ench(ENCH_SLEEP_WARY) // slept recently - && mons_holiness(mon) == MH_NATURAL // no unnatural - && mons_res_cold(mon) <= 0; // can't be hibernated + rc = !mon->has_ench(ENCH_SLEEP_WARY) // slept recently + && mons_holiness(mon) == MH_NATURAL // no unnatural + && mons_res_cold(mon) <= 0; // can't be hibernated break; default: |