diff options
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r-- | crawl-ref/source/ouch.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc index d746ef8bf9..53c0021c81 100644 --- a/crawl-ref/source/ouch.cc +++ b/crawl-ref/source/ouch.cc @@ -218,12 +218,13 @@ int check_your_resists(int hurted, beam_type flavour) break; case BEAM_HOLY: - if (is_good_god(you.religion)) + // Cleansing flame. + if (you.res_cleansing_flame() > 0) hurted = 0; - else if (player_is_unholy()) - hurted = (hurted * 3) / 2; - else if (!is_evil_god(you.religion)) + else if (you.res_cleansing_flame() == 0) hurted /= 2; + else if (you.res_cleansing_flame() < -1) + hurted = (hurted * 3) / 2; if (hurted == 0) canned_msg(MSG_YOU_RESIST); |