summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-behv.cc
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-11-14 22:55:33 -0800
committerMatthew Cline <zelgadis@sourceforge.net>2009-11-15 01:20:33 -0800
commit421babd7402fc7f030768062ad66227d8bd220d0 (patch)
tree37d4dc9f75b909e003baaf609062e12bb3567dc6 /crawl-ref/source/mon-behv.cc
parent497913340c6d5ba0c22174b94334e5be07801e79 (diff)
downloadcrawl-ref-421babd7402fc7f030768062ad66227d8bd220d0.tar.gz
crawl-ref-421babd7402fc7f030768062ad66227d8bd220d0.zip
Fix some arena asserts.
Diffstat (limited to 'crawl-ref/source/mon-behv.cc')
-rw-r--r--crawl-ref/source/mon-behv.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-behv.cc b/crawl-ref/source/mon-behv.cc
index 01be99300a..8b4956a8a9 100644
--- a/crawl-ref/source/mon-behv.cc
+++ b/crawl-ref/source/mon-behv.cc
@@ -1458,8 +1458,11 @@ void handle_behaviour(monsters *mon)
// Foe gone out of LOS?
if (!proxFoe)
{
- if ((isFriendly || proxPlayer) && !isNeutral && !patrolling)
+ if ((isFriendly || proxPlayer) && !isNeutral && !patrolling
+ && !crawl_state.arena)
+ {
new_foe = MHITYOU;
+ }
else
new_beh = BEH_WANDER;
}