diff options
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r-- | crawl-ref/source/monstuff.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index de3cc7d7b5..521fa5ef7d 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -2054,7 +2054,7 @@ void behaviour_event(monsters *mon, int event, int src, case ME_SCARE: { - const bool flee_sanct = !mons_wont_attack(mon) + const bool flee_sanct = !mons_wont_attack(mon) && is_sanctuary(mon->x, mon->y); // Berserking monsters don't flee, unless it's from sanctuary. @@ -3233,6 +3233,7 @@ static void _handle_behaviour(monsters *mon) if (need_target && patrolling) { need_target = false; + if (!_choose_random_patrol_target_grid(mon)) { // If we couldn't find a target that is within easy |