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.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc
index 3ad79c6348..35892d7e22 100644
--- a/crawl-ref/source/ouch.cc
+++ b/crawl-ref/source/ouch.cc
@@ -220,7 +220,7 @@ int check_your_resists(int hurted, beam_type flavour)
case BEAM_HOLY:
if (is_good_god(you.religion))
hurted = 0;
- else if (you.is_undead || you.species != SP_DEMONSPAWN)
+ else if (you.is_undead || you.species == SP_DEMONSPAWN)
hurted = (hurted * 3) / 2;
else if (!is_evil_god(you.religion))
hurted /= 2;