summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index 0e6bb50475..afce32467e 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -3044,8 +3044,12 @@ void bolt::affect_ground()
&& mons_class_can_pass(MONS_FUNGUS, env.grid(pos()))
&& !actor_at(pos()))
{
+ // Half the fungi in arena mode are friendly.
+ beh_type beh = (crawl_state.arena && coinflip()) ? BEH_FRIENDLY
+ : BEH_HOSTILE;
+
int rc = create_monster(mgen_data(MONS_FUNGUS,
- BEH_HOSTILE,
+ beh,
0,
0,
pos(),