diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-14 22:55:33 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-15 01:20:33 -0800 |
commit | 421babd7402fc7f030768062ad66227d8bd220d0 (patch) | |
tree | 37d4dc9f75b909e003baaf609062e12bb3567dc6 /crawl-ref/source/mon-behv.cc | |
parent | 497913340c6d5ba0c22174b94334e5be07801e79 (diff) | |
download | crawl-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.cc | 5 |
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; } |