summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ouch.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-20 16:42:22 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-20 16:42:22 +0000
commit912020d60e83381fa114313a0a88277966923b3b (patch)
tree71ac8a1542d66be3a05f6f8807f41dcfa9fb32ec /crawl-ref/source/ouch.cc
parent05abbb827c216a461437d7cd16f3cdf53b914fbd (diff)
downloadcrawl-ref-912020d60e83381fa114313a0a88277966923b3b.tar.gz
crawl-ref-912020d60e83381fa114313a0a88277966923b3b.zip
Make Xom's amusement at collateral damage take good neutral monsters
into account. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5154 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r--crawl-ref/source/ouch.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc
index 3abda679cb..e706ebaae1 100644
--- a/crawl-ref/source/ouch.cc
+++ b/crawl-ref/source/ouch.cc
@@ -771,7 +771,7 @@ static void xom_checks_damage(kill_method_type death_type,
if (!monster->alive())
return;
- if (mons_attitude(monster) == ATT_FRIENDLY)
+ if (mons_wont_attack(monster))
{
// Xom thinks collateral damage is funny.
xom_is_stimulated(255 * dam / (dam + you.hp));