summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-09 17:42:56 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-09 17:42:56 +0000
commit4a591f576e92c1aaba8a2bebff490ca1d2d46bd2 (patch)
tree5a1a55c1bb54a04d04e80f5277e875288f66b670 /crawl-ref/source/beam.cc
parent26e7da694c06b16e51c76c9a804c72bcf3cc8360 (diff)
downloadcrawl-ref-4a591f576e92c1aaba8a2bebff490ca1d2d46bd2.tar.gz
crawl-ref-4a591f576e92c1aaba8a2bebff490ca1d2d46bd2.zip
[1829067] Fixed mephitic cloud not setting enchantment owner correctly on affected monsters.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2833 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index 6e154a706e..64c8c2d22e 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -139,6 +139,8 @@ static kill_category whose_kill(const bolt &beam)
return (KC_YOU);
else if (MON_KILL(beam.thrower))
{
+ if (beam.beam_source == ANON_FRIENDLY_MONSTER)
+ return (KC_FRIENDLY);
if (beam.beam_source >= 0 && beam.beam_source < MAX_MONSTERS)
{
const monsters *mons = &menv[beam.beam_source];