summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-06 21:10:18 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-06 21:10:18 +0000
commit2331200dee057c636ca63980c8c3c2f97fed1163 (patch)
tree8eb473b65f3ed796efb43fceff1438bd62341ce1 /crawl-ref/source/monstuff.cc
parent4c1de87578e23df625a683d77e4f0bf1573b2bd3 (diff)
downloadcrawl-ref-2331200dee057c636ca63980c8c3c2f97fed1163.tar.gz
crawl-ref-2331200dee057c636ca63980c8c3c2f97fed1163.zip
Fix inverted logic, and simplify.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7160 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index c0cce9d350..2af65b8093 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -1057,9 +1057,9 @@ void monster_die(monsters *monster, killer_type killer,
}
if (you.duration[DUR_DEATH_CHANNEL]
- && gives_xp
&& mons_holiness(monster) == MH_NATURAL
- && mons_weight(mons_species(monster->type) > 0))
+ && mons_can_be_zombified(monster)
+ && gives_xp)
{
const monster_type spectre = mons_species(monster->type);