summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-place.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-07-26 13:30:49 -0400
committerNeil Moore <neil@s-z.org>2014-07-26 13:42:24 -0400
commit674d6c0fc3fbd5c83d0e34621269085d4343728b (patch)
treee3a5d2a5577ff5b7b0fc01b32c70f942d6218a02 /crawl-ref/source/mon-place.cc
parent3a388267246caaa9dd2046dfb11515f050eac22a (diff)
downloadcrawl-ref-674d6c0fc3fbd5c83d0e34621269085d4343728b.tar.gz
crawl-ref-674d6c0fc3fbd5c83d0e34621269085d4343728b.zip
Don't mark friendly illusions/ghosts as interesing (#8817)
Diffstat (limited to 'crawl-ref/source/mon-place.cc')
-rw-r--r--crawl-ref/source/mon-place.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-place.cc b/crawl-ref/source/mon-place.cc
index 994084997b..03414cea40 100644
--- a/crawl-ref/source/mon-place.cc
+++ b/crawl-ref/source/mon-place.cc
@@ -3479,6 +3479,12 @@ void mark_interesting_monst(monster* mons, beh_type behaviour)
// If it's never going to attack us, then not interesting
else if (behaviour == BEH_FRIENDLY)
interesting = false;
+ // Hostile ghosts and illusions are always interesting.
+ else if (mons->type == MONS_PLAYER_GHOST
+ || mons->type == MONS_PLAYER_ILLUSION)
+ {
+ interesting = true;
+ }
// Jellies are never interesting to Jiyva.
else if (mons->type == MONS_JELLY && you_worship(GOD_JIYVA))
interesting = false;