From 4c1de87578e23df625a683d77e4f0bf1573b2bd3 Mon Sep 17 00:00:00 2001 From: dolorous Date: Mon, 6 Oct 2008 20:59:59 +0000 Subject: Add more miscellaneous minor fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7159 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/monstuff.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/monstuff.cc') diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index 0a34779e12..c0cce9d350 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -781,7 +781,7 @@ void monster_die(monsters *monster, killer_type killer, const int monster_killed = monster_index(monster); const bool hard_reset = testbits(monster->flags, MF_HARD_RESET); - const bool gives_xp = !monster->has_ench(ENCH_ABJ); + const bool gives_xp = !mons_is_summoned(monster); bool in_transit = false; bool drop_items = !hard_reset && !mons_is_holy(monster); @@ -1059,7 +1059,7 @@ 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))) + && mons_weight(mons_species(monster->type) > 0)) { const monster_type spectre = mons_species(monster->type); -- cgit v1.2.3-54-g00ecf