summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index 53ee28d25d..662a51f259 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -2925,7 +2925,7 @@ bool melee_attack::apply_damage_brand()
break;
}
case SPWPN_PAIN:
- if (defender->res_negative_energy() > 0)
+ if (defender->res_negative_energy())
break;
if (x_chance_in_y(attacker->skill(SK_NECROMANCY) + 1, 8))
@@ -3233,7 +3233,7 @@ void melee_attack::player_apply_staff_damage()
}
case STAFF_DEATH:
- if (defender->res_negative_energy() > 0)
+ if (defender->res_negative_energy())
break;
if (x_chance_in_y(you.skills[SK_NECROMANCY] + 1, 8))