summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-31 21:19:02 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-31 21:19:02 +0000
commit057f3edf4f9795595f296d2beb7ed5fa4d8f04c0 (patch)
treef3195232cfa38068d28bc8e32bc683ae71f27506 /crawl-ref
parentc9c5a253fe4f03843c6fddc29b68ede1e525666b (diff)
downloadcrawl-ref-057f3edf4f9795595f296d2beb7ed5fa4d8f04c0.tar.gz
crawl-ref-057f3edf4f9795595f296d2beb7ed5fa4d8f04c0.zip
Make sure anonymous friendly monsters count as friendly for the purposes
of undead slave kills. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9871 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/monstuff.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index 79b048b763..69e4f0def4 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -1458,7 +1458,7 @@ int monster_die(monsters *monster, killer_type killer,
if (killer_holy == MH_UNDEAD)
{
const bool confused =
- anon ? true : !mons_friendly(killer_mon);
+ anon ? false : !mons_friendly(killer_mon);
// Yes, these are hacks, but they make sure that
// confused monsters doing kills are not
@@ -1527,7 +1527,7 @@ int monster_die(monsters *monster, killer_type killer,
if (killer_holy == MH_UNDEAD)
{
const bool confused =
- anon ? true : !mons_friendly(killer_mon);
+ anon ? false : !mons_friendly(killer_mon);
// Yes, this is a hack, but it makes sure that
// confused monsters doing kills are not