summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ouch.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r--crawl-ref/source/ouch.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc
index ca82412f81..ca1954ef41 100644
--- a/crawl-ref/source/ouch.cc
+++ b/crawl-ref/source/ouch.cc
@@ -220,12 +220,12 @@ int check_your_resists(int hurted, beam_type flavour)
case BEAM_HOLY:
{
// Cleansing flame.
- const int rcf = you.res_cleansing_flame(NULL);
- if (rcf > 0)
+ const int rhe = you.res_holy_energy(NULL);
+ if (rhe > 0)
hurted = 0;
- else if (rcf == 0)
+ else if (rhe == 0)
hurted /= 2;
- else if (rcf < -1)
+ else if (rhe < -1)
hurted = (hurted * 3) / 2;
if (hurted == 0)