diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-02-23 14:58:57 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-02-23 15:09:56 +0100 |
commit | d6fcea90f9bb5e4be51a876e0521eb2142484179 (patch) | |
tree | c99e8b65f5f986df66f0b27f8c916d0864b240ca /crawl-ref/source/mon-clone.cc | |
parent | 3c38b99e2e9d31ec260efeb9a4eef571a3f18286 (diff) | |
download | crawl-ref-d6fcea90f9bb5e4be51a876e0521eb2142484179.tar.gz crawl-ref-d6fcea90f9bb5e4be51a876e0521eb2142484179.zip |
Track the source of monster enchantments.
This fixes Injury Mirror not working for delayed damage, kills done
by undead/demon allies not counting as such, damage tracking not handling
ench damage, etc.
Diffstat (limited to 'crawl-ref/source/mon-clone.cc')
-rw-r--r-- | crawl-ref/source/mon-clone.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-clone.cc b/crawl-ref/source/mon-clone.cc index c3927de9a1..af5f87d393 100644 --- a/crawl-ref/source/mon-clone.cc +++ b/crawl-ref/source/mon-clone.cc @@ -187,7 +187,7 @@ static void _mons_load_player_enchantments(monster* creator, monster* target) continue; target->add_ench(mon_enchant(ench, 0, - creator->kill_alignment(), + creator, you.duration[i])); } } |