summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mstuff2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/mstuff2.cc')
-rw-r--r--crawl-ref/source/mstuff2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mstuff2.cc b/crawl-ref/source/mstuff2.cc
index b8141646de..a7b8e20fe9 100644
--- a/crawl-ref/source/mstuff2.cc
+++ b/crawl-ref/source/mstuff2.cc
@@ -1348,7 +1348,7 @@ void monster_teleport(monsters *monster, bool instan, bool silent)
}
}
- if (player_monster_visible(monster) && now_visible)
+ if (monster->visible_to(&you) && now_visible)
handle_seen_interrupt(monster);
// Leave a purple cloud.