summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-transit.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2012-08-04 17:27:10 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2012-08-04 17:27:10 -0600
commit07b274ec766ee773110cd06c9c071481c79e6e03 (patch)
treec43b0b7c7078d93ab9539bc7a9e1bfb75084a75c /crawl-ref/source/mon-transit.cc
parentec79180b561302f0d2671d8527a1b6d196df6132 (diff)
downloadcrawl-ref-07b274ec766ee773110cd06c9c071481c79e6e03.tar.gz
crawl-ref-07b274ec766ee773110cd06c9c071481c79e6e03.zip
Disallow rolling boulder beetles from following player on stairs.
If this isn't done, the projectile code can cause them to teleport to their position on the old level on the new level if the relevant space is open. Besides, they're too busy rolling to be able to ascend stairs. Fixes #6035.
Diffstat (limited to 'crawl-ref/source/mon-transit.cc')
-rw-r--r--crawl-ref/source/mon-transit.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-transit.cc b/crawl-ref/source/mon-transit.cc
index 4f46b5f35b..c9d7bc8706 100644
--- a/crawl-ref/source/mon-transit.cc
+++ b/crawl-ref/source/mon-transit.cc
@@ -306,6 +306,7 @@ static bool _tag_follower_at(const coord_def &pos, bool &real_follower)
if (!fol->alive()
|| fol->speed_increment < 50
|| fol->incapacitated()
+ || mons_is_boulder(fol)
|| mons_is_stationary(fol))
{
return false;