summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r--crawl-ref/source/spells2.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc
index 20ef704622..49b2d0fbf3 100644
--- a/crawl-ref/source/spells2.cc
+++ b/crawl-ref/source/spells2.cc
@@ -197,9 +197,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