diff options
author | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-24 23:37:46 +0000 |
---|---|---|
committer | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-24 23:37:46 +0000 |
commit | 516c6677528ba72ce7b07dba71cbda09840d0d03 (patch) | |
tree | f35036ad3331423fc2546719074e540f7b3c5bfb /crawl-ref/source/monstuff.cc | |
parent | 947b44004aa28d330a5228ccc74195483db878c2 (diff) | |
download | crawl-ref-516c6677528ba72ce7b07dba71cbda09840d0d03.tar.gz crawl-ref-516c6677528ba72ce7b07dba71cbda09840d0d03.zip |
[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
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r-- | crawl-ref/source/monstuff.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |