summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-02 17:05:53 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-02 17:05:53 +0000
commit8f24565555faf8e1cdbe5efd1e5b834fddd6ee51 (patch)
treef55416e0528a204000ad3ddef68400e2409c8ecb /crawl-ref/source/monstuff.cc
parent22774755df6d4a92b8ddb1eb03beb59fe5ee2dba (diff)
downloadcrawl-ref-8f24565555faf8e1cdbe5efd1e5b834fddd6ee51.tar.gz
crawl-ref-8f24565555faf8e1cdbe5efd1e5b834fddd6ee51.zip
Pacified monsters leaving the level shouldn't go out of their way to
attack other monsters. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6344 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index cb652fbf45..12c4e2f1df 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -2598,7 +2598,8 @@ static void _handle_behaviour(monsters *mon)
_set_nearest_monster_foe(mon);
}
- if (isNeutral && mon->foe == MHITNOT)
+ // Pacified monsters leaving the level prefer not to attack.
+ if (isNeutral && !isPacified && mon->foe == MHITNOT)
_set_nearest_monster_foe(mon);
// Monsters do not attack themselves. {dlb}