summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-24 07:06:21 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-24 07:06:21 +0000
commit574bf92a37ea1b51d11d0535e0c05af592ef7f23 (patch)
treecafe31ec4fd51317c57b10780a0ffa04308fc15e /crawl-ref/source/monstuff.cc
parent62b57f5fce2459dade3705de7107d430c17d2e45 (diff)
downloadcrawl-ref-574bf92a37ea1b51d11d0535e0c05af592ef7f23.tar.gz
crawl-ref-574bf92a37ea1b51d11d0535e0c05af592ef7f23.zip
Add a minor consistency fix: The DID_KILL_NATURAL_EVIL conduct isn't
currently used, but generate it under the right circumstances anyway, since DID_NATURAL_EVIL_KILLED_BY_SERVANT is already generated, and it isn't currently used either. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2907 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index bc5c6a8f93..05dcb7aa5a 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -650,6 +650,10 @@ void monster_die(monsters *monster, killer_type killer, int i, bool silent)
did_god_conduct(DID_KILL_DEMON,
monster->hit_dice);
+ if (mons_class_flag(monster->type, M_EVIL))
+ did_god_conduct(DID_KILL_NATURAL_EVIL,
+ monster->hit_dice);
+
// jmf: Trog hates wizards
if (mons_is_magic_user(monster))
did_god_conduct(DID_KILL_WIZARD,