summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-behv.cc
diff options
context:
space:
mode:
authorSage <SageBasilMint@gmail.com>2014-01-15 02:39:49 +0000
committerPekka Lampila <pekka.lampila@iki.fi>2014-01-15 06:01:21 +0200
commit0bca5b1567eb738139d0e6cc3980a27d9062e6a8 (patch)
tree2fb6674fc37a7efbfd6efffb59d62242e13e9208 /crawl-ref/source/mon-behv.cc
parent58d5a39bc2126cac1d1ab9d5ac839827b2ed8817 (diff)
downloadcrawl-ref-0bca5b1567eb738139d0e6cc3980a27d9062e6a8.tar.gz
crawl-ref-0bca5b1567eb738139d0e6cc3980a27d9062e6a8.zip
Make oklobs fire automatically when they have no preassigned target.
Diffstat (limited to 'crawl-ref/source/mon-behv.cc')
-rw-r--r--crawl-ref/source/mon-behv.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-behv.cc b/crawl-ref/source/mon-behv.cc
index 611f410fa8..b33ba9f501 100644
--- a/crawl-ref/source/mon-behv.cc
+++ b/crawl-ref/source/mon-behv.cc
@@ -461,6 +461,8 @@ void handle_behaviour(monster* mon)
{
if (you.pet_target != MHITNOT)
mon->foe = you.pet_target;
+ else if (mons_class_is_stationary(mon->type))
+ _set_nearest_monster_foe(mon);
}
else // Zotdef only
{