From 7630def4bbd001c8492deafeb28b95a6caccb4e4 Mon Sep 17 00:00:00 2001 From: dolorous Date: Tue, 28 Jul 2009 20:48:37 +0000 Subject: Forward-port the remaining applicable parts of 0.5 r10447. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10455 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spells2.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/spells2.cc') diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc index 2a0de0becd..ba2dfa6d27 100644 --- a/crawl-ref/source/spells2.cc +++ b/crawl-ref/source/spells2.cc @@ -198,9 +198,12 @@ int detect_creatures(int pow, bool telepathic) { if (monsters *mon = monster_at(*ri)) { - creatures_found++; - - _mark_detected_creature(*ri, mon, fuzz_chance, fuzz_radius); + // If you can see the monster, don't "detect" it elsewhere. + if (!mons_near(mon) || !player_monster_visible(mon)) + { + creatures_found++; + _mark_detected_creature(*ri, mon, fuzz_chance, fuzz_radius); + } // Assuming that highly intelligent spellcasters can // detect scrying. -- bwr -- cgit v1.2.3-54-g00ecf