summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-behv.cc
diff options
context:
space:
mode:
authorBlackSheep <chris.terenzi@gmail.com>2013-12-16 14:10:13 -0500
committerNeil Moore <neil@s-z.org>2013-12-18 01:00:14 -0500
commit09a3b55cb8820491e2d04ce1dc92bf5a58270700 (patch)
tree3d20a4b98c2a12b0f3fa22b40a75abd997fd41ef /crawl-ref/source/mon-behv.cc
parent38b6ab9a544f659366615f94d4a19ebe28ae9156 (diff)
downloadcrawl-ref-09a3b55cb8820491e2d04ce1dc92bf5a58270700.tar.gz
crawl-ref-09a3b55cb8820491e2d04ce1dc92bf5a58270700.zip
Allow retreating allies to go hostile when attacked
Diffstat (limited to 'crawl-ref/source/mon-behv.cc')
-rw-r--r--crawl-ref/source/mon-behv.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-behv.cc b/crawl-ref/source/mon-behv.cc
index 94db1476a6..ba3502d490 100644
--- a/crawl-ref/source/mon-behv.cc
+++ b/crawl-ref/source/mon-behv.cc
@@ -1255,7 +1255,7 @@ void behaviour_event(monster* mon, mon_event_type event, const actor *src,
case ME_WHACK:
case ME_ANNOY:
// Orders to withdraw take precedence over interruptions
- if (mon->behaviour == BEH_WITHDRAW)
+ if (mon->behaviour == BEH_WITHDRAW && src != &you)
break;
// Will turn monster against <src>, unless they