summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index 6f64234350..ffca8c92c9 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -296,7 +296,7 @@ int torment_monsters(coord_def where, int pow, int caster, actor *attacker)
if (monster == NULL)
return (retval);
- if (!monster->alive() || mons_res_negative_energy(monster) == 3)
+ if (!monster->alive() || monster->res_negative_energy() == 3)
return (retval);
int hploss = std::max(0, monster->hit_points / 2 - 1);