summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/exclude.cc
diff options
context:
space:
mode:
authorCharles Otto <ottochar@gmail.com>2009-11-13 16:19:46 -0500
committerCharles Otto <ottochar@gmail.com>2009-11-13 17:42:43 -0500
commitfac85079e634c937a85dae090eb613f572bb41a0 (patch)
tree643ed770dccef0ca90369eb4e480f6ed73553d96 /crawl-ref/source/exclude.cc
parentd5e801f43d1a82f62e70d74bb0b6cd98b214f72d (diff)
downloadcrawl-ref-fac85079e634c937a85dae090eb613f572bb41a0.tar.gz
crawl-ref-fac85079e634c937a85dae090eb613f572bb41a0.zip
Improve Fedhas' interaction with auto-exclusions
Make neutralization work on monsters that are out of sight, also make it clear auto-exclusions for e.g. oklobs that previously got auto-ann. but are now out of sight. Make the monster_hostile stuff put auto-exclusions on oklobs you have already seen (if it turns them hostile).
Diffstat (limited to 'crawl-ref/source/exclude.cc')
-rw-r--r--crawl-ref/source/exclude.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/exclude.cc b/crawl-ref/source/exclude.cc
index 73f99b167f..8ce5d7923b 100644
--- a/crawl-ref/source/exclude.cc
+++ b/crawl-ref/source/exclude.cc
@@ -38,7 +38,9 @@ static bool _mon_needs_auto_exclude(const monsters *mon, bool sleepy = false)
bool need_auto_exclude(const monsters *mon, bool sleepy)
{
// This only works if the name is lowercased.
- std::string name = mon->name(DESC_BASENAME);
+ std::string name = mon->name(DESC_BASENAME,
+ mons_is_stationary(mon)
+ && testbits(mon->flags, MF_SEEN));
lowercase(name);
for (unsigned i = 0; i < Options.auto_exclude.size(); ++i)