From 516c6677528ba72ce7b07dba71cbda09840d0d03 Mon Sep 17 00:00:00 2001 From: ennewalker Date: Wed, 24 Dec 2008 23:37:46 +0000 Subject: [2443156] Fixing plants giving experience when killed by pets. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7967 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/monstuff.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/monstuff.cc') diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index a466c05cf6..f3fdf530d4 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -481,7 +481,7 @@ static void _give_adjusted_experience(monsters *monster, killer_type killer, const bool created_friendly = testbits(monster->flags, MF_CREATED_FRIENDLY); const bool was_neutral = testbits(monster->flags, MF_WAS_NEUTRAL); - const bool no_xp = monster->has_ench(ENCH_ABJ); + const bool no_xp = monster->has_ench(ENCH_ABJ) || !experience; const bool already_got_half_xp = testbits(monster->flags, MF_GOT_HALF_XP); bool need_xp_msg = false; -- cgit v1.2.3-54-g00ecf