summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/spells3.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index 4969da954f..a5e490fc65 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -1611,6 +1611,20 @@ static bool _teleport_player(bool allow_control, bool new_abyss_area)
if (large_change)
handle_interrupted_swap(true);
+ viewwindow(false, true);
+ for (monster_iterator mi; mi; ++mi)
+ {
+ const bool see_cell = you.see_cell(mi->pos());
+
+ if (mi->foe == MHITYOU && !see_cell)
+ {
+ mi->foe_memory = 0;
+ behaviour_event(*mi, ME_EVAL);
+ }
+ else if (see_cell)
+ behaviour_event(*mi, ME_EVAL);
+ }
+
// Might identify unknown ring of teleport control.
if (check_ring_TC)
maybe_id_ring_TC();