summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-pathfind.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/mon-pathfind.cc')
-rw-r--r--crawl-ref/source/mon-pathfind.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-pathfind.cc b/crawl-ref/source/mon-pathfind.cc
index 94aa3851fd..e7fc8c503c 100644
--- a/crawl-ref/source/mon-pathfind.cc
+++ b/crawl-ref/source/mon-pathfind.cc
@@ -406,7 +406,9 @@ bool monster_pathfind::mons_traversable(const coord_def p)
{
if (mons->is_habitable_feat(DNGN_FLOOR))
{
- if (mons_is_zombified(mons))
+ if (mons_eats_items(mons))
+ return (true);
+ else if (mons_is_zombified(mons))
{
if (mons_class_itemuse(montype) >= MONUSE_OPEN_DOORS)
return (true);