diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-04-20 23:25:29 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-04-21 01:34:35 +0200 |
commit | aaea51835ffddbd677776a59320d924921a6701b (patch) | |
tree | 6ef55b674dcc23fe93d52cd2974b463151b94453 /crawl-ref/source/dactions.cc | |
parent | 888cf270cf25fc62bcecc24a2ac530fbb14f568d (diff) | |
download | crawl-ref-aaea51835ffddbd677776a59320d924921a6701b.tar.gz crawl-ref-aaea51835ffddbd677776a59320d924921a6701b.zip |
Mindexicide: behaviour_event().
This also reveals how bad the beam blaming code is, need to rewrite that soon
-- mostly because of problems with reflection.
Diffstat (limited to 'crawl-ref/source/dactions.cc')
-rw-r--r-- | crawl-ref/source/dactions.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/dactions.cc b/crawl-ref/source/dactions.cc index 6689d415c2..86d457a27a 100644 --- a/crawl-ref/source/dactions.cc +++ b/crawl-ref/source/dactions.cc @@ -139,7 +139,7 @@ static void _apply_daction(daction_type act) dprf("going hostile: %s", mi->name(DESC_PLAIN, true).c_str()); mi->attitude = ATT_HOSTILE; mi->del_ench(ENCH_CHARM, true); - behaviour_event(*mi, ME_ALERT, MHITYOU); + behaviour_event(*mi, ME_ALERT, &you); // For now CREATED_FRIENDLY/WAS_NEUTRAL stays. mons_att_changed(*mi); |