From fac85079e634c937a85dae090eb613f572bb41a0 Mon Sep 17 00:00:00 2001 From: Charles Otto Date: Fri, 13 Nov 2009 16:19:46 -0500 Subject: 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). --- crawl-ref/source/exclude.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/exclude.cc') 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) -- cgit v1.2.3-54-g00ecf