summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/directn.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc
index 5260c6f4bd..d4635d0959 100644
--- a/crawl-ref/source/directn.cc
+++ b/crawl-ref/source/directn.cc
@@ -1336,7 +1336,13 @@ void direction(dist& moves, targeting_type restricts,
{
monsters &m = menv[mid];
- switch (m.attitude)
+ mon_attitude_type att = m.attitude;
+
+ // During arena mode, skip directly from friendly to hostile.
+ if (crawl_state.arena_suspended && att == ATT_FRIENDLY)
+ att = ATT_NEUTRAL;
+
+ switch (att)
{
case ATT_FRIENDLY:
m.attitude = ATT_GOOD_NEUTRAL;