summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-act.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/mon-act.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/mon-act.cc')
-rw-r--r--crawl-ref/source/mon-act.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-act.cc b/crawl-ref/source/mon-act.cc
index 54bf8c2afe..4349a2f3c3 100644
--- a/crawl-ref/source/mon-act.cc
+++ b/crawl-ref/source/mon-act.cc
@@ -12,6 +12,7 @@
#endif
#include "arena.h"
+#include "attitude-change.h"
#include "beam.h"
#include "cloud.h"
#include "dbg-scan.h"
@@ -1582,6 +1583,8 @@ static void _handle_monster_move(monsters *monster)
monster->hit_points = std::min(monster->max_hit_points,
monster->hit_points);
+ fedhas_neutralise(monster);
+
// Monster just summoned (or just took stairs), skip this action.
if (testbits( monster->flags, MF_JUST_SUMMONED ))
{