summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-02 21:03:53 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-02 21:03:53 +0000
commitb0ae4a2bfc608640f77cc9ad2e5e6b6e9d282412 (patch)
tree243dc42258fe182389623f9c72aeaef0e827936b /crawl-ref/source/monstuff.cc
parent8459ae9cf2d41e728a359bb744c40616a04f2ff0 (diff)
downloadcrawl-ref-b0ae4a2bfc608640f77cc9ad2e5e6b6e9d282412.tar.gz
crawl-ref-b0ae4a2bfc608640f77cc9ad2e5e6b6e9d282412.zip
And tweak it again.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6351 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index be3c2192bf..b52510d3b0 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -3098,7 +3098,7 @@ static void _handle_behaviour(monsters *mon)
// wandering monsters at least appear to have some sort of
// attention span. -- bwr
if (mon->x == mon->target_x && mon->y == mon->target_y
- || mons_is_batty(mon) || one_chance_in(20))
+ || mons_is_batty(mon) || (!isPacified && one_chance_in(20)))
{
bool need_target = true;
if (travelling)
@@ -3202,8 +3202,8 @@ static void _handle_behaviour(monsters *mon)
mon->target_x = mon->travel_path[0].x;
mon->target_y = mon->travel_path[0].y;
#ifdef DEBUG_PATHFIND
- mprf("Next waypoint: (%d, %d)",
- mon->target_x, mon->target_y);
+ mprf("Next waypoint: (%d, %d)",
+ mon->target_x, mon->target_y);
#endif
}
else