summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-06 20:59:59 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-06 20:59:59 +0000
commit4c1de87578e23df625a683d77e4f0bf1573b2bd3 (patch)
treef0410819b9d3dd5f40df375d05ddeceba9843afd /crawl-ref/source/monstuff.cc
parent8998d5a1a9d34ef0fccf47505104970945a45a36 (diff)
downloadcrawl-ref-4c1de87578e23df625a683d77e4f0bf1573b2bd3.tar.gz
crawl-ref-4c1de87578e23df625a683d77e4f0bf1573b2bd3.zip
Add more miscellaneous minor fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7159 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 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);