diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-19 00:11:43 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-19 00:11:43 +0000 |
commit | cd2263afc231d2f30b5c3fb0d03d94a923691d38 (patch) | |
tree | d4541f407386f5267f5f59a272bb12e9207abd7d /crawl-ref/source | |
parent | a8b134e880670b0dbd21df0c79ffbabc1a7911ae (diff) | |
download | crawl-ref-cd2263afc231d2f30b5c3fb0d03d94a923691d38.tar.gz crawl-ref-cd2263afc231d2f30b5c3fb0d03d94a923691d38.zip |
Simplify.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8565 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/spl-cast.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc index a947b494c1..c7ac6ce8dd 100644 --- a/crawl-ref/source/spl-cast.cc +++ b/crawl-ref/source/spl-cast.cc @@ -3853,7 +3853,7 @@ void MiscastEffect::_necromancy(int severity) if (lethality_margin == 0 || you.experience > 0 || !avoid_lethal(you.hp)) { - if (target->res_negative_energy() < 3 && one_chance_in(3)) + if (one_chance_in(3)) { target->drain_exp(act_source); break; @@ -3925,11 +3925,8 @@ void MiscastEffect::_necromancy(int severity) if (lethality_margin == 0 || you.experience > 0 || !avoid_lethal(you.hp)) { - if (target->res_negative_energy() < 3) - { - target->drain_exp(act_source); - break; - } + target->drain_exp(act_source); + break; } // If draining failed, just flow through if it's the player... |